Install Ansible via pip for the Ansible host
This commit is contained in:
parent
963f43aeeb
commit
4775944fc0
@ -4,15 +4,24 @@
|
||||
- name: Basic setup
|
||||
include_role:
|
||||
name: common
|
||||
- name: Install Ansible-required packages
|
||||
- name: Install Ansible-required packages via apt
|
||||
apt:
|
||||
name: "{{ packages }}"
|
||||
vars:
|
||||
packages:
|
||||
- ansible
|
||||
- python-pip
|
||||
- python-boto
|
||||
- python-boto3
|
||||
- python-botocore
|
||||
become: true
|
||||
- name: Install Ansible-required packages via pip
|
||||
pip:
|
||||
name: "{{ packages }}"
|
||||
state: latest
|
||||
vars:
|
||||
packages:
|
||||
- ansible
|
||||
become: true
|
||||
- name: Create .aws directory for salt
|
||||
file:
|
||||
path: ~/.aws
|
||||
|
Loading…
Reference in New Issue
Block a user