Skip to content

Commit

Permalink
fix: use no_log option for include_vars (CVE-2024-8775)
Browse files Browse the repository at this point in the history
  • Loading branch information
chronicc committed Oct 27, 2024
1 parent 68e4e2e commit e68ddbc
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions playbooks/00-initialize-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- '{{ ansible_distribution }}.yml'
paths:
- ../vars
no_log: true
tags:
- always

Expand Down
1 change: 1 addition & 0 deletions playbooks/10-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- '{{ ansible_distribution }}.yml'
paths:
- ../vars
no_log: true
tags:
- always

Expand Down
1 change: 1 addition & 0 deletions playbooks/10-workstations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- '{{ ansible_distribution }}.yml'
paths:
- ../vars
no_log: true
tags:
- always

Expand Down
1 change: 1 addition & 0 deletions playbooks/20-install-fonts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- '{{ ansible_distribution }}.yml'
paths:
- ../vars
no_log: true
tags:
- always

Expand Down
1 change: 1 addition & 0 deletions playbooks/20-setup-minecraft-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- '{{ ansible_distribution }}.yml'
paths:
- ../vars
no_log: true
tags:
always

Expand Down
2 changes: 2 additions & 0 deletions roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- '{{ ansible_distribution | lower }}.yml'
paths:
- ../vars
no_log: true

- name: Include OS-specific tasks
ansible.builtin.include_tasks: '{{ lookup("ansible.builtin.first_found", params) }}'
Expand All @@ -18,3 +19,4 @@
- '{{ ansible_distribution | lower }}.yml'
paths:
- .
no_log: true
2 changes: 2 additions & 0 deletions roles/init/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- '{{ ansible_distribution | lower }}.yml'
paths:
- ../vars
no_log: true

- name: Include OS-specific tasks
ansible.builtin.include_tasks: '{{ lookup("ansible.builtin.first_found", params) }}'
Expand All @@ -18,3 +19,4 @@
- '{{ ansible_distribution | lower }}.yml'
paths:
- .
no_log: true
2 changes: 2 additions & 0 deletions roles/pkg/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- '{{ ansible_distribution | lower }}.yml'
paths:
- ../vars
no_log: true

- name: Include OS-specific tasks
ansible.builtin.include_tasks: '{{ lookup("ansible.builtin.first_found", params) }}'
Expand All @@ -18,3 +19,4 @@
- '{{ ansible_distribution | lower }}.yml'
paths:
- .
no_log: true
1 change: 1 addition & 0 deletions roles/ssh/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- main.yaml
paths:
- ../vars
no_log: true

- name: Include target tasks
ansible.builtin.include_tasks: '{{ _target }}.yml'

0 comments on commit e68ddbc

Please sign in to comment.