fix: let ansible install handle dependencies
and add proper task names
This commit is contained in:
parent
1671c7b1e2
commit
21943464f5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue