December 2017
Intermediate to advanced
364 pages
7h 30m
English
To download a role from the Ansible Galaxy website, we can run the following command, where username and role_name are the options:
$ ansible-galaxy install username.role_name
The following command will download the docker_ubuntu role by user angstwad:
$ ansible-galaxy install angstwad.docker_ubuntu- downloading role 'docker_ubuntu', owned by angstwad- downloading role from https://github.com/angstwad/docker.ubuntu/archive/v3.3.4.tar.gz- extracting angstwad.docker_ubuntu to /home/ubuntu/.ansible/roles/angstwad.docker_ubuntu- angstwad.docker_ubuntu (v3.3.4) was installed successfully
To use this role to install Docker on Ubuntu is as simple as including this role in our playbook and executing it:
- name: Run docker.ubuntu ...