Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-zaprudskiy committed Feb 7, 2023
1 parent 94d68bf commit f042cb3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
18 changes: 9 additions & 9 deletions roles/backup/tasks/creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@
- this_backup['resources'][0]['metadata']['labels']

- block:
- include_tasks: init.yml
- include_tasks: init.yml

- include_tasks: postgres.yml
- include_tasks: postgres.yml

- include_tasks: awx-cro.yml
- include_tasks: awx-cro.yml

- include_tasks: secrets.yml
- include_tasks: secrets.yml

- name: Set flag signifying this backup was successful
set_fact:
backup_complete: true
- name: Set flag signifying this backup was successful
set_fact:
backup_complete: true

- include_tasks: cleanup.yml
- include_tasks: cleanup.yml

when:
- this_backup['resources'][0]['status']['backupDirectory'] is not defined
- this_backup['resources'][0]['status']['backupDirectory'] is not defined

- name: Update status variables
include_tasks: update_status.yml
14 changes: 7 additions & 7 deletions roles/installer/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@
- name: Load LDAP CAcert certificate
include_tasks: load_ldap_cacert_secret.yml
when:
- ldap_cacert_secret != ''
- ldap_cacert_secret != ''

- name: Load ldap bind password
include_tasks: load_ldap_password_secret.yml
when:
- ldap_password_secret != ''
- ldap_password_secret != ''

- name: Load bundle certificate authority certificate
include_tasks: load_bundle_cacert_secret.yml
when:
- bundle_cacert_secret != ''
- bundle_cacert_secret != ''

- name: Include admin password configuration tasks
include_tasks: admin_password_configuration.yml
Expand All @@ -66,8 +66,8 @@
- name: Load Route TLS certificate
include_tasks: load_route_tls_secret.yml
when:
- ingress_type | lower == 'route'
- route_tls_secret != ''
- ingress_type | lower == 'route'
- route_tls_secret != ''

- name: Include resources configuration tasks
include_tasks: resources_configuration.yml
Expand All @@ -91,8 +91,8 @@
bash -c "awx-manage migrate --noinput"
register: migrate_result
when:
- database_check is defined
- (database_check.stdout|trim) != '0'
- database_check is defined
- (database_check.stdout|trim) != '0'

- name: Initialize Django
include_tasks: initialize_django.yml
Expand Down
20 changes: 10 additions & 10 deletions roles/restore/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,24 @@
- this_restore['resources'][0]['metadata']['labels']

- block:
- include_tasks: init.yml
- include_tasks: init.yml

- include_tasks: import_vars.yml
- include_tasks: import_vars.yml

- include_tasks: secrets.yml
- include_tasks: secrets.yml

- include_tasks: deploy_awx.yml
- include_tasks: deploy_awx.yml

- include_tasks: postgres.yml
- include_tasks: postgres.yml

- name: Set flag signifying this restore was successful
set_fact:
tower_restore_complete: True
- name: Set flag signifying this restore was successful
set_fact:
tower_restore_complete: True

- include_tasks: cleanup.yml
- include_tasks: cleanup.yml

when:
- this_restore['resources'][0]['status']['restoreComplete'] is not defined
- this_restore['resources'][0]['status']['restoreComplete'] is not defined

- name: Update status variables
include_tasks: update_status.yml

0 comments on commit f042cb3

Please sign in to comment.