Skip to content

Commit

Permalink
Disable reverse sync for management commands (#1970)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding authored Oct 9, 2024
1 parent 848cf17 commit d4de2d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/installer/tasks/initialize_django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
changed_when: "'That username is already taken' not in result.stderr"
failed_when: "'That username is already taken' not in result.stderr and 'Superuser created successfully' not in result.stdout"
no_log: "{{ no_log }}"
environment:
ANSIBLE_REVERSE_RESOURCE_SYNC: "false"
when: users_result.return_code > 0

- name: Update Django super user password
Expand Down Expand Up @@ -117,4 +119,6 @@
bash -c "awx-manage create_preload_data"
register: cdo
changed_when: "'added' in cdo.stdout"
environment:
ANSIBLE_REVERSE_RESOURCE_SYNC: "false"
when: create_preload_data | bool

0 comments on commit d4de2d3

Please sign in to comment.