Move AWS credentials to their own directory

This commit is contained in:
Salt 2020-06-08 20:15:22 -05:00
parent 7406d30191
commit 63c7af0016
5 changed files with 19 additions and 9 deletions

View File

@ -0,0 +1,2 @@
---
allow_duplicates: no

View File

@ -0,0 +1,15 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Set up AWS credentials for root
block:
- name: Create .aws directory
file:
path: ~/.aws
state: directory
- name: Copy AWS credentials
copy:
src: awscredentials
dest: ~/.aws/credentials
mode: "0600"
become: true

View File

@ -1,2 +1,4 @@
---
allow_duplicates: no
dependencies:
- role: awscreds

View File

@ -21,15 +21,6 @@
vars:
packages:
- ansible
- name: Create .aws directory
file:
path: ~/.aws
state: directory
- name: Copy AWS credentials
copy:
src: awscredentials
dest: ~/.aws/credentials
mode: "0600"
- name: Assure root .ssh directory
file:
path: ~/.ssh