41 lines
833 B
YAML
41 lines
833 B
YAML
|
#!/usr/bin/ansible-playbook
|
||
|
# vim:ft=ansible:
|
||
|
---
|
||
|
- name: Basic setup
|
||
|
include_role:
|
||
|
name: common
|
||
|
- name: Install Ansible-required packages
|
||
|
apt:
|
||
|
name: "{{ packages }}"
|
||
|
vars:
|
||
|
packages:
|
||
|
- ansible
|
||
|
- python-boto3
|
||
|
- python-botocore
|
||
|
become: true
|
||
|
- name: Create .aws directory for salt
|
||
|
file:
|
||
|
path: ~/.aws
|
||
|
state: directory
|
||
|
become: true
|
||
|
become_user: salt
|
||
|
- name: Copy AWS credentials
|
||
|
copy:
|
||
|
src: "{{ role_path }}/files/awscredentials"
|
||
|
dest: ~/.aws/credentials
|
||
|
mode: 0600
|
||
|
become: true
|
||
|
become_user: salt
|
||
|
- name: Create Projects directory for salt
|
||
|
file:
|
||
|
path: ~/Projects
|
||
|
state: directory
|
||
|
become: true
|
||
|
become_user: salt
|
||
|
- name: Clone Ansible repository
|
||
|
git:
|
||
|
repo: git@gitlab.com:rehashedsalt/ansible
|
||
|
dest: ~/Projects/ansible
|
||
|
become: true
|
||
|
become_user: salt
|