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