From 4ada601b6a77560c8a7806cd4d1a2622f5d4add5 Mon Sep 17 00:00:00 2001 From: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com> Date: Tue, 24 Oct 2023 15:55:14 -0400 Subject: [PATCH] Prefer `true`/`false` to `yes`/`no` for Ansible booleans This aligns the Ansible configuration with the changes made in cisagov/skeleton-ansible-role#157. --- src/aws.yml | 2 +- src/base.yml | 2 +- src/example.yml | 2 +- src/python.yml | 2 +- src/upgrade.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/aws.yml b/src/aws.yml index 70c10c0c..f05d07f8 100644 --- a/src/aws.yml +++ b/src/aws.yml @@ -1,7 +1,7 @@ --- - hosts: all name: AWS-specific roles - become: yes + become: true become_method: ansible.builtin.sudo tasks: - name: Install Amazon EFS utilities diff --git a/src/base.yml b/src/base.yml index 560796ce..5064841a 100644 --- a/src/base.yml +++ b/src/base.yml @@ -1,7 +1,7 @@ --- - hosts: all name: Setup base image - become: yes + become: true become_method: ansible.builtin.sudo tasks: - name: Install and configure automated security updates diff --git a/src/example.yml b/src/example.yml index d1ddfa66..ca2e6f59 100644 --- a/src/example.yml +++ b/src/example.yml @@ -1,7 +1,7 @@ --- - hosts: all name: Project-specific roles - become: yes + become: true become_method: ansible.builtin.sudo tasks: # The cisagov/ansible-role-example Ansible role is just a no-op, diff --git a/src/python.yml b/src/python.yml index c98ef2a8..c1d369f1 100644 --- a/src/python.yml +++ b/src/python.yml @@ -1,7 +1,7 @@ --- - hosts: all name: Install pip3/python3 and remove pip2/python2 - become: yes + become: true become_method: ansible.builtin.sudo tasks: # If pip were to be installed first, then the OS _could_ pull diff --git a/src/upgrade.yml b/src/upgrade.yml index 417992f3..e8dfe7db 100644 --- a/src/upgrade.yml +++ b/src/upgrade.yml @@ -1,7 +1,7 @@ --- - hosts: all name: Upgrade base image - become: yes + become: true become_method: ansible.builtin.sudo tasks: - name: Upgrade all packages