mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 20:07:37 -02:30
Fixed a bug, where the redis.conf first would be stored with mod 0600
and in the next task changed to 0666. This has broke the ability to rerun the playbook. Signed-off-by: JoelKle <34544090+JoelKle@users.noreply.github.com>
This commit is contained in:
@@ -12,22 +12,22 @@
|
|||||||
|
|
||||||
- name: Create Docker Compose Configuration
|
- name: Create Docker Compose Configuration
|
||||||
template:
|
template:
|
||||||
src: "{{ item }}.j2"
|
src: "{{ item.file }}.j2"
|
||||||
dest: "{{ docker_compose_dir }}/{{ item }}"
|
dest: "{{ docker_compose_dir }}/{{ item.file }}"
|
||||||
mode: 0600
|
mode: "{{ item.mode }}"
|
||||||
with_items:
|
loop:
|
||||||
- environment.sh
|
- file: environment.sh
|
||||||
- credentials.py
|
mode: "0600"
|
||||||
- docker-compose.yml
|
- file: credentials.py
|
||||||
- nginx.conf
|
mode: "0600"
|
||||||
- redis.conf
|
- file: docker-compose.yml
|
||||||
|
mode: "0600"
|
||||||
|
- file: nginx.conf
|
||||||
|
mode: "0600"
|
||||||
|
- file: redis.conf
|
||||||
|
mode: "0664"
|
||||||
register: awx_compose_config
|
register: awx_compose_config
|
||||||
|
|
||||||
- name: Set redis config to other group readable to satisfy redis-server
|
|
||||||
file:
|
|
||||||
path: "{{ docker_compose_dir }}/redis.conf"
|
|
||||||
mode: 0666
|
|
||||||
|
|
||||||
- name: Render SECRET_KEY file
|
- name: Render SECRET_KEY file
|
||||||
copy:
|
copy:
|
||||||
content: "{{ secret_key }}"
|
content: "{{ secret_key }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user