Skip to content

Commit

Permalink
Add tags/variables to make targeting specific tasks easier
Browse files Browse the repository at this point in the history
Add tags/variables to make it easier to target specific tasks, like
forcing an update of the services stack file.
  • Loading branch information
skoranda committed May 13, 2020
1 parent 17f8e95 commit 8f44dbc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion roles/training/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions roles/training/vars/main.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion training_nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 8f44dbc

Please sign in to comment.