Install Ansible via pip for the Ansible host

This commit is contained in:
Salt 2019-09-15 01:08:35 -05:00
parent 963f43aeeb
commit 4775944fc0

View File

@ -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