fix: let ansible install handle dependencies

and add proper task names
This commit is contained in:
Serge van Ginderachter 2018-05-12 13:11:30 +02:00
parent 1671c7b1e2
commit 21943464f5
No known key found for this signature in database
GPG key ID: D08FC082B8E46E8E

View file

@ -22,24 +22,27 @@
- name: install ubuntu1 node as ansible control machine - name: install ubuntu1 node as ansible control machine
hosts: ubuntu1 hosts: ubuntu1
tasks: tasks:
- apt: - name: install pip
apt:
name: name:
- python3-pip - python3-pip
- pip: - name: install/upgrade Python tools
pip:
name: name:
- pip - pip
- setuptools - setuptools
- cryptography
- paramiko
extra_args: --upgrade extra_args: --upgrade
- pip: - name: install ansible
pip:
name: ansible name: ansible
version: 2.5.2 version: 2.5.2
- become_user: vagrant - become_user: vagrant
name: checkout experiments repo on controller node
git: git:
dest: ./ansible-experiments dest: ./ansible-experiments
repo: https://github.com/stationgroup/ansible-experiments repo: https://github.com/stationgroup/ansible-experiments
- become_user: vagrant - become_user: vagrant
name: create ssh key for vagrant user
user: user:
name: vagrant name: vagrant
generate_ssh_key: true generate_ssh_key: true