More tab unification
This commit is contained in:
parent
afd74edc65
commit
75d47c0f08
@ -3,32 +3,32 @@
|
|||||||
---
|
---
|
||||||
- name: Set up Ansible
|
- name: Set up Ansible
|
||||||
block:
|
block:
|
||||||
- name: Install Ansible-required packages via apt
|
- name: Install Ansible-required packages via apt
|
||||||
apt:
|
apt:
|
||||||
name: "{{ packages }}"
|
name: "{{ packages }}"
|
||||||
vars:
|
vars:
|
||||||
packages:
|
packages:
|
||||||
- python3-pip
|
- python3-pip
|
||||||
- python3-boto
|
- python3-boto
|
||||||
- python3-boto3
|
- python3-boto3
|
||||||
- python3-botocore
|
- python3-botocore
|
||||||
- python3-setuptools
|
- python3-setuptools
|
||||||
become: true
|
become: true
|
||||||
- name: Install Ansible-required packages via pip
|
- name: Install Ansible-required packages via pip
|
||||||
pip:
|
pip:
|
||||||
name: "{{ packages }}"
|
name: "{{ packages }}"
|
||||||
state: latest
|
state: latest
|
||||||
vars:
|
vars:
|
||||||
packages:
|
packages:
|
||||||
- ansible
|
- ansible
|
||||||
- name: Assure root .ssh directory
|
- name: Assure root .ssh directory
|
||||||
file:
|
file:
|
||||||
path: ~/.ssh
|
path: ~/.ssh
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
- name: Copy Ansible private key
|
- name: Copy Ansible private key
|
||||||
copy:
|
copy:
|
||||||
src: ansiblekey
|
src: ansiblekey
|
||||||
dest: ~/.ssh/ansible
|
dest: ~/.ssh/ansible
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
become: true
|
become: true
|
||||||
|
Loading…
Reference in New Issue
Block a user