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')}}"

Get marathon leader:

- dcos_marathon_leader:
  register: marathon

License

MIT

Project details


Release history Release notifications

This version
History Node

1.4.0

History Node

1.3.0

History Node

1.2.3

History Node

1.2.2

History Node

1.2.1

History Node

1.2.0

History Node

1.1.0

History Node

1.0.9

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.0

History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
ansible-modules-dcos-1.4.0.tar.gz (8.0 kB) Copy SHA256 hash SHA256 Source None Nov 19, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page