Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 426 Bytes

README.md

File metadata and controls

24 lines (21 loc) · 426 Bytes

Ansible Roles

Setup

clone all roles to ansible roles

git clone https://github.com/amir2b/ansible-roles.git /etc/ansible/roles/

Or copy any role you want to /etc/ansible/roles/

Example

Show all server details by command

ansible all -m include_role -a name=details

use in playbook.yml

- name: Install docker
  hosts: all
  become: true
  roles:
    - update
    - docker_setup