copr: backend: install .ansible.cfg for copr/resalloc
And enforce ansible_python_interpreter = /usr/bin/python3 callback_whitelist = profile_tasks this way.
This commit is contained in:
parent
b0533dadc5
commit
2cb47769d9
3 changed files with 15 additions and 0 deletions
3
roles/copr/backend/files/ansible.cfg
Normal file
3
roles/copr/backend/files/ansible.cfg
Normal file
|
@ -0,0 +1,3 @@
|
|||
[defaults]
|
||||
ansible_python_interpreter = /usr/bin/python3
|
||||
callback_whitelist = profile_tasks
|
|
@ -158,6 +158,12 @@
|
|||
tags:
|
||||
- provision_config
|
||||
|
||||
- name: install .ansible.cfg for copr user
|
||||
copy: src=ansible.cfg dest=/home/copr/.ansible.cfg
|
||||
owner=copr group=copr mode=600
|
||||
tags:
|
||||
- provision_config
|
||||
|
||||
- name: put provisioning files
|
||||
synchronize: src="provision/" dest="/home/copr/provision/"
|
||||
tags:
|
||||
|
|
|
@ -31,6 +31,12 @@
|
|||
become: yes
|
||||
become_user: postgres
|
||||
|
||||
- name: install .ansible.cfg for resalloc user
|
||||
copy: src=ansible.cfg dest=/home/resalloc/.ansible.cfg
|
||||
owner=resalloc group=resalloc mode=600
|
||||
tags:
|
||||
- provision_config
|
||||
|
||||
- name: resalloc, sync copr provisioning files
|
||||
synchronize: src="provision/" dest="/var/lib/resallocserver/provision/"
|
||||
tags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue