From 62adb64fe171ff18ff4417a710b69de256d1fdac Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sun, 30 Jun 2024 16:35:25 +0100 Subject: Cleanup quotes usage in YAML files Seems quotes in YAML is a mess. Official guidelines (see explanation here [1]) are following. 1. If you can get away without quotes, do not use them. 2. Use single quotes if you need quotes. 3. Use double quotes if you can't use single quotes for some reason. Common reason for double quotes in this repository is line breaks for long lines and control characters (\n, \t) in replacement patterns. Hope, I didn't break anything. Tested with following commands, because there are no changes in others. $ ansible-playbook dotfiles.yml $ ansible-playbook master.yml [1]: https://stackoverflow.com/a/69850618/1313516 --- roles/sudo/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles/sudo') diff --git a/roles/sudo/tasks/main.yml b/roles/sudo/tasks/main.yml index e2d4861..2837aa7 100644 --- a/roles/sudo/tasks/main.yml +++ b/roles/sudo/tasks/main.yml @@ -10,7 +10,7 @@ state: present regexp: '^(# )?%wheel ALL=\(ALL:ALL\) NOPASSWD: ALL' line: '%wheel ALL=(ALL:ALL) NOPASSWD: ALL' - validate: "visudo -cf %s" + validate: visudo -cf %s owner: root group: root mode: u+r,g+r,o-rwx @@ -25,7 +25,7 @@ /usr/sbin:/usr/bin:/sbin:/bin\"" line: "Defaults secure_path=\"/usr/local/sbin:/usr/local/bin:\ /usr/sbin:/usr/bin:/sbin:/bin\"" - validate: "visudo -cf %s" + validate: visudo -cf %s owner: root group: root mode: u+r,g+r,o-rwx -- cgit v1.2.3-70-g09d2