Skip to content

Commit

Permalink
updated deprecated include: directives in ansible config
Browse files Browse the repository at this point in the history
  • Loading branch information
zenmonkeykstop authored and rocodes committed Oct 19, 2023
1 parent 60573a5 commit dbe550c
Show file tree
Hide file tree
Showing 19 changed files with 60 additions and 60 deletions.
4 changes: 2 additions & 2 deletions install_files/ansible-base/roles/app-test/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
- include: staging_wsgi_files.yml
- include_tasks: staging_wsgi_files.yml
when: "'staging' in group_names"
tags:
- apache

- include: modern_gettext.yml
- include_tasks: modern_gettext.yml
tags:
- modern_gettext

Expand Down
10 changes: 5 additions & 5 deletions install_files/ansible-base/roles/app/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
- include: app_install_fpf_deb_pkgs.yml
- include_tasks: app_install_fpf_deb_pkgs.yml
when: securedrop_app_install_from_repo

- include: initialize_securedrop_app.yml
- include_tasks: initialize_securedrop_app.yml

- include: copy_tor_url_info_to_app_dir.yml
- include_tasks: copy_tor_url_info_to_app_dir.yml

# If HTTPS is enabled, certs must land before Apache vhost configs
# are written, otherwise the Apache enmod tasks will fail.
- include: copy_ssl_certs.yml
- include_tasks: copy_ssl_certs.yml
when:
- securedrop_app_https_on_source_interface

- include: install_and_harden_apache.yml
- include_tasks: install_and_harden_apache.yml
2 changes: 1 addition & 1 deletion install_files/ansible-base/roles/backup/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
- include: backup.yml
- include_tasks: backup.yml
2 changes: 1 addition & 1 deletion install_files/ansible-base/roles/common/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# in order to reuse a single implementation of reboot logic
# as necessary.
- name: reboot
include: "{{ role_path }}/../../tasks/reboot.yml"
include_tasks: "{{ role_path }}/../../tasks/reboot.yml"

- name: update apt cache
apt:
Expand Down
24 changes: 12 additions & 12 deletions install_files/ansible-base/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
---
- include_vars: "{{ ansible_distribution }}_{{ ansible_distribution_release }}.yml"

- include: apt_sources.yml
- include_tasks: apt_sources.yml

- include: apt_upgrade.yml
- include_tasks: apt_upgrade.yml

- include: install_packages.yml
- include_tasks: install_packages.yml

- include: post_ubuntu_install_checks.yml
- include_tasks: post_ubuntu_install_checks.yml

- include: create_users.yml
- include_tasks: create_users.yml

- include: setup_etc_hosts.yml
- include_tasks: setup_etc_hosts.yml

- include: harden_dns.yml
- include_tasks: harden_dns.yml

- include: unattended_upgrades.yml
- include_tasks: unattended_upgrades.yml
tags:
- ua
- reboot

- include: remove_unused_packages.yml
- include_tasks: remove_unused_packages.yml

- include: sysctl.yml
- include_tasks: sysctl.yml

- include: disable_swap.yml
- include_tasks: disable_swap.yml

- include: remove_kernel_modules.yml
- include_tasks: remove_kernel_modules.yml
8 changes: 4 additions & 4 deletions install_files/ansible-base/roles/grsecurity/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
# Check whether grsecurity is already configured,
# since that fact will be used in multiple includes.
- include: check_installation.yml
- include_tasks: check_installation.yml

# Install the grsec kernel prior to running unattended-upgrades to avoid
# reboots
- include: from_fpf_repo_install_grsec.yml
- include_tasks: from_fpf_repo_install_grsec.yml
tags:
- grsec

- include: clean_packages.yml
- include_tasks: clean_packages.yml

- include: apply_grsec_lock.yml
- include_tasks: apply_grsec_lock.yml
tags:
- reboot
- grsec
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
register: apt_mark_showhold_result
changed_when: false

- include: install_debs.yml
- include_tasks: install_debs.yml

- include: hold_debs.yml
- include_tasks: hold_debs.yml
6 changes: 3 additions & 3 deletions install_files/ansible-base/roles/ossec/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
- include: configure_client.yml
- include_tasks: configure_client.yml
when: ossec_is_client

- include: configure_server.yml
- include_tasks: configure_server.yml
when: ossec_is_server

- include: register.yml
- include_tasks: register.yml
6 changes: 3 additions & 3 deletions install_files/ansible-base/roles/postfix/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
- include: install_postfix.yml
- include_tasks: install_postfix.yml

- include: install_procmail.yml
- include_tasks: install_procmail.yml

# Configure SSL certificates for SMTP relay if manual
# overrides are declared. See default vars
# `smtp_relay_cert_override_file` and `smtp_relay_cert_override_dir`.
- include: configure_custom_cert.yml
- include_tasks: configure_custom_cert.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- include: check_whether_reboot_needed.yml
- include_tasks: check_whether_reboot_needed.yml

- include: reboot-no-check.yml
- include_tasks: reboot-no-check.yml
# The conditional vars below are defined via set_fact
# in the `check_whether_reboot_needed` task list.
when: securedrop_initial_installation or securedrop_conditional_reboot
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
- include: reset-ssh-key.yml
- include_tasks: reset-ssh-key.yml
6 changes: 3 additions & 3 deletions install_files/ansible-base/roles/restore/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
- name: Apply backup to Application Server
include: perform_restore.yml
include_tasks: perform_restore.yml

- name: Remove deprecated v2 onion service configuration
include: cleanup_v2.yml
include_tasks: cleanup_v2.yml
when: not restore_skip_tor

- name: Restart Tor
include: update_tor.yml
include_tasks: update_tor.yml
when: not restore_skip_tor
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
- include_vars: "{{ ansible_distribution }}_{{ ansible_distribution_release }}.yml"

- include: fetch_tor_config.yml
- include_tasks: fetch_tor_config.yml
when: fetch_tor_client_auth_configs

- include: dh_moduli.yml
- include_tasks: dh_moduli.yml

- include: ssh.yml
- include_tasks: ssh.yml

- include: iptables.yml
- include_tasks: iptables.yml
tags:
- iptables
- permissions
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- include: app_display_onions.yml
- include_tasks: app_display_onions.yml
tags: backup

- include: ssh.yml
- include_tasks: ssh.yml

- include: app_iptables.yml
- include_tasks: app_iptables.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- include: mon_display_onions.yml
- include_tasks: mon_display_onions.yml
tags: backup

- include: ssh.yml
- include_tasks: ssh.yml

- include: mon_iptables.yml
- include_tasks: mon_iptables.yml
14 changes: 7 additions & 7 deletions install_files/ansible-base/roles/tails-config/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
---
# Reuse validation logic.
- include: "{{ role_path }}/../validate/tasks/validate_tails_environment.yml"
- include_tasks: "{{ role_path }}/../validate/tasks/validate_tails_environment.yml"

- include: copy_dotfiles.yml
- include_tasks: copy_dotfiles.yml

- include: configure_torrc_additions.yml
- include_tasks: configure_torrc_additions.yml

- include: create_desktop_shortcuts.yml
- include_tasks: create_desktop_shortcuts.yml

- include: install_shell_extension.yml
- include_tasks: install_shell_extension.yml

- include: configure_network_hook.yml
- include_tasks: configure_network_hook.yml

- name: Check that we are on an admin workstation
stat:
path: group_vars/all/site-specific
register: site_specific_result

- include: create_ssh_aliases.yml
- include_tasks: create_ssh_aliases.yml
when: site_specific_result.stat.exists
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
- include: install_tor.yml
- include_tasks: install_tor.yml

- include: configure_tor_hidden_services.yml
- include_tasks: configure_tor_hidden_services.yml
2 changes: 1 addition & 1 deletion install_files/ansible-base/roles/validate/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
- include: validate_tails_environment.yml
- include_tasks: validate_tails_environment.yml
when: securedrop_validate_tails_environment
2 changes: 1 addition & 1 deletion install_files/ansible-base/securedrop-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
- not enable_ssh_over_tor
- sd_dir_check.stat.exists

- include: tasks/transition_ssh_local.yml
- include_tasks: tasks/transition_ssh_local.yml
when:
- not enable_ssh_over_tor
- sd_dir_check.stat.exists
Expand Down

0 comments on commit dbe550c

Please sign in to comment.