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. Adding `become: true` guarantee that ansible will not fail due to priviledge issue.

Sigend-off-by: [email protected]
  • Loading branch information
mahdipub committed Sep 30, 2024
1 parent d483066 commit b67f8bd
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 b67f8bd

Please sign in to comment.