mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-04 23:15:21 +08:00
34 lines
983 B
YAML
34 lines
983 B
YAML
---
|
|
- name: install aws client
|
|
dnf: state=present name=awscli
|
|
|
|
- name: create aws HOME config directory
|
|
file: state=directory
|
|
path="{{ item.homedir }}/.aws"
|
|
owner={{ item.user }}
|
|
group={{ item.user }}
|
|
mode=0700
|
|
with_items:
|
|
- {user: copr, homedir: /home/copr}
|
|
- {user: resalloc, homedir: /var/lib/resallocserver}
|
|
|
|
- name: install aws credentials file
|
|
template: src=aws-credentials
|
|
dest="{{ item.homedir }}/.aws/credentials"
|
|
owner={{ item.user }}
|
|
group={{ item.user }}
|
|
mode=0600
|
|
with_items:
|
|
- {user: copr, homedir: /home/copr}
|
|
- {user: resalloc, homedir: /var/lib/resallocserver}
|
|
|
|
- name: install aws config file
|
|
template: src=aws-config
|
|
dest="{{ item.homedir }}/.aws/config"
|
|
owner={{ item.user }}
|
|
group={{ item.user }}
|
|
mode=0600
|
|
with_items:
|
|
- {user: copr, homedir: /home/copr}
|
|
- {user: resalloc, homedir: /var/lib/resallocserver}
|