Skip to content

Commit

Permalink
unixPB: adds become: true to all kernel config related tasks
Browse files Browse the repository at this point in the history
in macos, touching `/etc/sysctl.conf`, puting content in it or rebooting system is what needs scallated priviledge because most of the time ansible user does not have enought authority to do system changes and need to use sudo. Adding `become: true` guarantee that ansible will not fail due to priviledge issue.

Signed-off-by: [email protected]
  • Loading branch information
mahdipub committed Dec 9, 2024
1 parent 028773c commit 91f1d38
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@
mode: 0644
owner: root
group: wheel
become: true
tags:
- kernel_tuning

Expand All @@ -222,6 +223,7 @@
kern.sysv.shmmax=125839605760
kern.sysv.shmall=30722560
register: kernel
become: true
tags:
- kernel_tuning

Expand All @@ -232,6 +234,7 @@
mode: 0774
owner: root
group: staff
become: true
tags:
- core_dumps

Expand All @@ -240,6 +243,7 @@
reboot:
reboot_timeout: 3600
when: kernel.changed
become: true
tags:
- kernel_tuning
- skip_ansible_lint

0 comments on commit 91f1d38

Please sign in to comment.