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
hosts: ubuntu1
tasks:
- apt:
- name: install pip
apt:
name:
- python3-pip
- pip:
- name: install/upgrade Python tools
pip:
name:
- pip
- setuptools
- cryptography
- paramiko
extra_args: --upgrade
- pip:
- name: install ansible
pip:
name: ansible
version: 2.5.2
- become_user: vagrant
name: checkout experiments repo on controller node
git:
dest: ./ansible-experiments
repo: https://github.com/stationgroup/ansible-experiments
- become_user: vagrant
name: create ssh key for vagrant user
user:
name: vagrant
generate_ssh_key: true