-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
38 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
--- | ||
- name: Teardown attendance | ||
include_tasks: teardown.yml | ||
ansible.builtin.include_tasks: teardown.yml | ||
when: teardown|bool | ||
|
||
- name: setup attendance instance | ||
when: not teardown | ||
block: | ||
- name: setup DNS specific information | ||
include_tasks: "{{ item }}" | ||
- name: Setup DNS specific information | ||
ansible.builtin.include_tasks: "{{ item }}" | ||
with_first_found: | ||
- "{{role_path}}/tasks/{{ dns_type }}.yml" | ||
- "{{role_path}}/tasks/none.yml" | ||
|
||
- name: install package dependencies for attendance instance | ||
include_tasks: 10_package_dependencies.yml | ||
- name: Install package dependencies for attendance instance | ||
ansible.builtin.include_tasks: 10_package_dependencies.yml | ||
|
||
- name: attempt to get SSL certificates | ||
- name: Attempt to get SSL certificates | ||
block: | ||
- name: retrieve SSL cert with certbot | ||
include_tasks: 20_certbot.yml | ||
- name: Retrieve SSL cert with certbot | ||
ansible.builtin.include_tasks: 20_certbot.yml | ||
rescue: | ||
- name: append dns_information failure | ||
set_fact: | ||
- name: Append dns_information failure | ||
ansible.builtin.set_fact: | ||
dns_information: | ||
- "{{ dns_information }}" | ||
- "The Lets Encrypt certbot failed for the attendance node, please check https://letsencrypt.status.io/ to make sure the service is running" | ||
|
||
- name: error with SSL cert | ||
debug: | ||
- name: Error with SSL cert | ||
ansible.builtin.debug: | ||
msg: "Unable to retrieve SSL cert, ERROR, continuing on without cert..." | ||
|
||
|
||
- name: install and configure nginx on attendance node | ||
include_tasks: 30_nginx.yml | ||
- name: Install and configure nginx on attendance node | ||
ansible.builtin.include_tasks: 30_nginx.yml | ||
|
||
- name: Configure attendance host | ||
import_tasks: 40_attendance.yml | ||
when: not teardown | ||
ansible.builtin.import_tasks: 40_attendance.yml | ||
|
||
- name: Configure attendance host | ||
import_tasks: 40_attendance.yml | ||
ansible.builtin.import_tasks: 40_attendance.yml | ||
when: not teardown|bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
- name: Ensure boto3 version is >= 1.28.0 | ||
hosts: localhost | ||
connection: local | ||
gather_facts: no | ||
tasks: | ||
|
||
- name: do facts | ||
ansible.builtin.setup: | ||
register: my_facts | ||
|
||
- debug: | ||
var: my_facts | ||
|