Skip to main content

DCOS Ansible Modules

Project description

Ansible modules for DC/OS.

Latest version

Usage

Create a user:

- hosts: localhost
  tasks:
    - dcos_user:
        uid: "bobslydell"
        description: 'bobslydell'
        password: 'fooBar123ASDF'
        state: present
        dcos_credentials: "{{ dcos_facts.ansible_facts.dcos_credentials }}"

Create a group:

- dcos_group: gid="bobs" description='the bobs'

Create a ACL:

- dcos_acl:
    rid: "dcos:adminrouter:service:marathon-bobs"
    description: "Bob acl"

Add user to ACL:

- dcos_acl_user:
    rid: "dcos:adminrouter:service:marathon-bobs"
    uid: "bobslydell"
    permission: "read"

Add group to ACL:

- dcos_acl_group:
    rid: "dcos:adminrouter:service:marathon-bobs"
    gid: "bobs"
    permission: "read"

Print the DC/OS token:

- debug: msg="{{lookup('dcos_token')}}"

Print the DC/OS token header:

- debug: msg="{{lookup('dcos_token_header')}}"

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansible-modules-dcos-1.2.0.tar.gz (7.0 kB view details)

Uploaded Source

File details

Details for the file ansible-modules-dcos-1.2.0.tar.gz.

File metadata

File hashes

Hashes for ansible-modules-dcos-1.2.0.tar.gz
Algorithm Hash digest
SHA256 a64748bcb9ed981a1320d288e4eed01dc63b5f517e90bf53f68c34864e6e8c92
MD5 f5a12b3a25d39ca22ad292af752ca367
BLAKE2b-256 a98c6241ab0d6445de2041924ea6799ecfb2e54181699f9ef362dd3f56c2e193

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page