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:
Pavel Raiskup 2019-08-14 17:00:18 +02:00 committed by Pierre-Yves Chibon
parent b0533dadc5
commit 2cb47769d9
3 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,3 @@
[defaults]
ansible_python_interpreter = /usr/bin/python3
callback_whitelist = profile_tasks

View file

@ -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:

View file

@ -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: