Ansible: Replacing text in file complex example: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

13 March 2024

  • curprev 20:4520:45, 13 March 2024Ebasso talk contribs 1,395 bytes +7 No edit summary
  • curprev 20:4520:45, 13 March 2024Ebasso talk contribs 1,388 bytes −7 No edit summary
  • curprev 20:4420:44, 13 March 2024Ebasso talk contribs 1,395 bytes +1,395 Created page with "I need to replace umask into /etc/profile from: if [ $UID -gt 199 ] && [ "`/usr/bin/id -gn`" = "`/usr/bin/id -un`" ]; then umask '''022''' else umask '''027''' fi to if [ $UID -gt 199 ] && [ "`/usr/bin/id -gn`" = "`/usr/bin/id -un`" ]; then umask '''002''' else umask '''022''' fi Below, an ansible script that do this: <nowiki> - name: Verify existence of file /etc/profile locally hosts: localhost gather_facts: false vars: myfile: /etc/..."