miquelMariano.common

Role Name

A brief description of the role goes here.

Requirements

Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required..

Role Variables

A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.

Dependencies

No dependencies

Example Playbook

---
### common.yml

- hosts: ansible
  user: root
  tasks:
     - name: Ensure that role are up to date
       command: ansible-galaxy install --force {{ item }}
       with_items:
          - miquelmariano.common
       when:
          - update_mode | default(False)
       tags: update
       ignore_errors: yes

- hosts: "{{  servers }}"
  user: root
  roles:
     - role: miquelmariano.common

Execute playbook

ansible-playbook playbooks/common.yml -i inventory/servers -e "update_mode=true servers=server"

License

BSD

Author Information

miquelMariano.github.io | Twitter

About

Common configuration

Install
ansible-galaxy install miquelMariano.common
GitHub repository
License
Unknown
Downloads
73