From 8f44dbcbd16ef5619a35ed121f4f4386ff780ff2 Mon Sep 17 00:00:00 2001 From: Scott Koranda Date: Wed, 13 May 2020 07:55:41 -0500 Subject: [PATCH] Add tags/variables to make targeting specific tasks easier Add tags/variables to make it easier to target specific tasks, like forcing an update of the services stack file. --- roles/training/tasks/main.yml | 4 +++- roles/training/vars/main.yml | 1 + training_nodes.yml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/training/tasks/main.yml b/roles/training/tasks/main.yml index 523e785..f739161 100644 --- a/roles/training/tasks/main.yml +++ b/roles/training/tasks/main.yml @@ -46,7 +46,9 @@ mode: '0644' # Do not overwrite an existing file even if it has been # modified. - force: no + force: "{{ force_update_stack_file }}" + tags: + - update_stack_file - name: Copy structure LDIF input file copy: diff --git a/roles/training/vars/main.yml b/roles/training/vars/main.yml index 0335e14..e368616 100644 --- a/roles/training/vars/main.yml +++ b/roles/training/vars/main.yml @@ -1,4 +1,5 @@ --- + force_update_stack_file: no olc_root_pw: "{CRYPT}$6$rounds=5000$RMNH6IpoChSTxPzx$r9c67vaf.vP7HExQTFeR.7kioNEWU5/BiJHfs/.3xjcYmJ9R594IIRpey.IyENS5iBdTnpfBOvOYqS/cCM/8.0" olc_root_dn_password: !vault | $ANSIBLE_VAULT;1.1;AES256 diff --git a/training_nodes.yml b/training_nodes.yml index c8cb600..19080e6 100644 --- a/training_nodes.yml +++ b/training_nodes.yml @@ -97,7 +97,7 @@ health_check_port: traffic-port health_check_protocol: http healthy_threshold_count: 3 - successful_response_codes: "200" + successful_response_codes: "200,301,302" unhealthy_threshold_count: 5 targets: - Id: "{{ item.tagged_instances[0].id }}"