replace command by var with absolute path
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
commands:
|
||||||
|
- visudo: "/usr/bin/visudo"
|
||||||
@@ -12,4 +12,7 @@ postgres_pkgs:
|
|||||||
- package: "postgresql"
|
- package: "postgresql"
|
||||||
- package: "postgresql-contrib"
|
- package: "postgresql-contrib"
|
||||||
- package: "python3-psycopg2"
|
- package: "python3-psycopg2"
|
||||||
- package: "sudo"
|
- package: "sudo"
|
||||||
|
|
||||||
|
commands:
|
||||||
|
- visudo: "/usr/sbin/visudo"
|
||||||
@@ -12,4 +12,7 @@ postgres_pkgs:
|
|||||||
- package: "postgresql"
|
- package: "postgresql"
|
||||||
- package: "postgresql-contrib"
|
- package: "postgresql-contrib"
|
||||||
- package: "python3-psycopg2"
|
- package: "python3-psycopg2"
|
||||||
- package: "sudo"
|
- package: "sudo"
|
||||||
|
|
||||||
|
commands:
|
||||||
|
- visudo: "/usr/sbin/visudo"
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
mode: "0660"
|
mode: "0660"
|
||||||
validate: "visudo -cf %s"
|
validate: " {{ commands.visudo }} -cf %s"
|
||||||
when: ansible_distribution in ["Debian", "Ubuntu"]
|
when: ansible_distribution in ["Debian", "Ubuntu"]
|
||||||
|
|
||||||
- name: server | snmpd | create /etc/snmp
|
- name: server | snmpd | create /etc/snmp
|
||||||
|
|||||||
Reference in New Issue
Block a user