From 2f400f3f7dad691203c0d22f42e1167832eb352b Mon Sep 17 00:00:00 2001 From: Paulo Monteiro Date: Fri, 30 Jun 2023 00:00:53 +0100 Subject: [PATCH 1/4] patch: ignore vscode IDE folder --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 782ca40..4d5a597 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,7 @@ playbook.retry .idea # Vagrant build folder -.vagrant \ No newline at end of file +.vagrant + +# VS Code +.vscode \ No newline at end of file From abe9baeb0bb551aee44c9706d21c213364988113 Mon Sep 17 00:00:00 2001 From: Paulo Monteiro Date: Fri, 30 Jun 2023 00:01:42 +0100 Subject: [PATCH 2/4] fix: ansible_lint errors and warnings Use FQCN for ansible actions and for builtin module actions --- playbook.yml | 6 ++-- roles/base/tasks/main.yml | 10 +++---- roles/base/tasks/ntp.yml | 2 +- roles/development/tasks/main.yml | 10 +++---- roles/development/tasks/nvm.yml | 2 +- roles/editors/tasks/main.yml | 2 +- roles/gnome/tasks/dash-to-dock.yml | 38 ++++++++++++------------ roles/gnome/tasks/keyboard-shortcuts.yml | 22 +++++++------- roles/gnome/tasks/main.yml | 14 ++++----- roles/gnome/tasks/peripherals.yml | 10 +++---- roles/gnome/tasks/screensaver.yml | 4 +-- roles/gnome/tasks/top-bar.yml | 14 ++++----- roles/gnome/tasks/window-titlebars.yml | 2 +- roles/security/tasks/main.yml | 4 +-- roles/users/tasks/main.yml | 4 +-- roles/virtualization/tasks/main.yml | 6 ++-- 16 files changed, 75 insertions(+), 75 deletions(-) diff --git a/playbook.yml b/playbook.yml index ae0f88b..3c80875 100644 --- a/playbook.yml +++ b/playbook.yml @@ -19,10 +19,10 @@ handlers: - name: Configure OS handler - import_tasks: handlers/os.yml + ansible.builtin.import_tasks: handlers/os.yml - name: Configure Freshclam OS - import_tasks: handlers/freshclam.yml + ansible.builtin.import_tasks: handlers/freshclam.yml - name: Configure .zshrc - import_tasks: handlers/zshrc.yml + ansible.builtin.import_tasks: handlers/zshrc.yml diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 3a71ee2..862c843 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -35,19 +35,19 @@ - aur - name: Configure NTP - import_tasks: ntp.yml + ansible.builtin.import_tasks: ntp.yml - name: Configure PIP - import_tasks: pip.yml + ansible.builtin.import_tasks: pip.yml - name: Configure Bash - import_tasks: bash.yml + ansible.builtin.import_tasks: bash.yml - name: Configure Zsh - import_tasks: zsh.yml + ansible.builtin.import_tasks: zsh.yml - name: Configure terminator - import_tasks: terminator.yml + ansible.builtin.import_tasks: terminator.yml - name: Creates Workspace directory ansible.builtin.file: diff --git a/roles/base/tasks/ntp.yml b/roles/base/tasks/ntp.yml index f1c1dd0..648ec56 100644 --- a/roles/base/tasks/ntp.yml +++ b/roles/base/tasks/ntp.yml @@ -8,7 +8,7 @@ - ntp - name: Set timezone to Europe/London - timezone: + community.general.timezone: name: Europe/London become: true tags: diff --git a/roles/development/tasks/main.yml b/roles/development/tasks/main.yml index e0c8504..65c1f4a 100644 --- a/roles/development/tasks/main.yml +++ b/roles/development/tasks/main.yml @@ -10,7 +10,7 @@ - development - name: Configure Go - import_tasks: go.yml + ansible.builtin.import_tasks: go.yml - name: Install Developer Tools from Arch User Repository ansible.builtin.script: ../../../aur/install-aur.sh {{ item }} @@ -25,13 +25,13 @@ - aur - name: Install nvm - import_tasks: nvm.yml + ansible.builtin.import_tasks: nvm.yml - name: Configure docker - import_tasks: docker-config.yml + ansible.builtin.import_tasks: docker-config.yml - name: Configure Emacs - import_tasks: emacs-config.yml + ansible.builtin.import_tasks: emacs-config.yml - name: Configure Tesseract - import_tasks: tesseract.yml + ansible.builtin.import_tasks: tesseract.yml diff --git a/roles/development/tasks/nvm.yml b/roles/development/tasks/nvm.yml index cc97255..8ecbc98 100644 --- a/roles/development/tasks/nvm.yml +++ b/roles/development/tasks/nvm.yml @@ -1,6 +1,6 @@ --- - name: Get latest release of the Node Version Manager (nvm) repository - github_release: + community.general.github_release: user: nvm-sh repo: nvm action: latest_release diff --git a/roles/editors/tasks/main.yml b/roles/editors/tasks/main.yml index e225b6d..d6df1a4 100644 --- a/roles/editors/tasks/main.yml +++ b/roles/editors/tasks/main.yml @@ -18,7 +18,7 @@ - editors_aur - name: Setup default Git configuration - git_config: + community.general.git_config: name: "{{ item.name }}" scope: global value: "{{ item.value }}" diff --git a/roles/gnome/tasks/dash-to-dock.yml b/roles/gnome/tasks/dash-to-dock.yml index cc09204..ce2094b 100644 --- a/roles/gnome/tasks/dash-to-dock.yml +++ b/roles/gnome/tasks/dash-to-dock.yml @@ -1,6 +1,6 @@ --- - name: Dash to Dock - Set dash max icon size - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/dash-max-icon-size value: "64" state: present @@ -10,7 +10,7 @@ - dash-to-dock - name: Dash to Dock - Set dots colour - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/custom-theme-running-dots-color value: "'#ffffff'" state: present @@ -20,7 +20,7 @@ - dash-to-dock - name: Dash to Dock - Set dots border colour - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/custom-theme-running-dots-border-color value: "'#ffffff'" state: present @@ -30,7 +30,7 @@ - dash-to-dock - name: Dash to Dock - Set background colour - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/background-color value: "'#ffffff'" state: present @@ -40,7 +40,7 @@ - dash-to-dock - name: Dash to Dock - Set transparency mode - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/transparency-mode value: "'FIXED'" state: present @@ -50,7 +50,7 @@ - dash-to-dock - name: Dash to Dock - Set running indicator style - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/running-indicator-style value: "'DOTS'" state: present @@ -60,7 +60,7 @@ - dash-to-dock - name: Dash to Dock - Set background opacity - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/background-opacity value: "0.22" state: present @@ -70,7 +70,7 @@ - dash-to-dock - name: Dash to Dock - Set dock position - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/dock-position value: "'BOTTOM'" state: present @@ -81,7 +81,7 @@ # Enabled settings - name: Dash to Dock - Enable custom background color - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/custom-background-color value: "true" state: present @@ -91,7 +91,7 @@ - dash-to-dock - name: Dash to Dock - Enable custom-theme-shrink - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/custom-theme-shrink value: "true" state: present @@ -101,7 +101,7 @@ - dash-to-dock - name: Dash to Dock - Enable multi monitor - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/multi-monitor value: "true" state: present @@ -112,7 +112,7 @@ # Disabled settings - name: Dash to Dock - Disable fixed icon size - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/icon-size-fixed value: "false" state: present @@ -122,7 +122,7 @@ - dash-to-dock - name: Dash to Dock - Disable unity-backlit-items - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/unity-backlit-items value: "false" state: present @@ -132,7 +132,7 @@ - dash-to-dock - name: "Dash to Dock - Disable custom theme " - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/apply-custom-theme value: "false" state: present @@ -142,7 +142,7 @@ - dash-to-dock - name: Dash to Dock - Disable running indicator dominant color - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/running-indicator-dominant-color value: "false" state: present @@ -152,7 +152,7 @@ - dash-to-dock - name: Dash to Dock - Disable straight corners - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/force-straight-corner value: "false" state: present @@ -162,7 +162,7 @@ - dash-to-dock - name: Dash to Dock - Disable show apps at top - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/show-apps-at-top value: "false" state: present @@ -172,7 +172,7 @@ - dash-to-dock - name: Dash to Dock - Disable extend height - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/extend-height value: "false" state: present @@ -182,7 +182,7 @@ - dash-to-dock - name: Dash to Dock - Disable dock fixed - dconf: + community.general.dconf: key: /org/gnome/shell/extensions/dash-to-dock/dock-fixed value: "false" state: present diff --git a/roles/gnome/tasks/keyboard-shortcuts.yml b/roles/gnome/tasks/keyboard-shortcuts.yml index 0308a97..794ecca 100644 --- a/roles/gnome/tasks/keyboard-shortcuts.yml +++ b/roles/gnome/tasks/keyboard-shortcuts.yml @@ -1,6 +1,6 @@ --- - name: Keyboard Shortcuts - System settings - dconf: + community.general.dconf: key: /org/gnome/settings-daemon/plugins/media-keys/control-center value: "['t']" state: present @@ -8,7 +8,7 @@ become: true - name: Keyboard Shortcuts - Hide all normal windows - dconf: + community.general.dconf: key: /org/gnome/desktop/wm/keybindings/show-desktop value: "['d']" state: present @@ -16,7 +16,7 @@ become: true - name: Keyboard Shortcuts - Maximize windows - dconf: + community.general.dconf: key: /org/gnome/desktop/wm/keybindings/maximize value: "['Up']" state: present @@ -24,7 +24,7 @@ become: true - name: Keyboard Shortcuts - Default Browser - dconf: + community.general.dconf: key: /org/gnome/settings-daemon/plugins/media-keys/www value: "['w']" state: present @@ -32,7 +32,7 @@ become: true - name: Keyboard Shortcuts - Home - dconf: + community.general.dconf: key: /org/gnome/settings-daemon/plugins/media-keys/home value: "['e']" state: present @@ -40,7 +40,7 @@ become: true - name: Keyboard Shortcuts - Calculator - dconf: + community.general.dconf: key: /org/gnome/settings-daemon/plugins/media-keys/calculator value: "['c']" state: present @@ -50,7 +50,7 @@ - keyboard-shortcuts - name: Keyboard Shortcuts - Defining custom bindings - dconf: + community.general.dconf: key: /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings value: "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']" state: present @@ -60,7 +60,7 @@ - keyboard-shortcuts - name: Keyboard Shortcuts - Terminator name - dconf: + community.general.dconf: key: /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/name value: "'Launch Terminator'" state: present @@ -70,7 +70,7 @@ - keyboard-shortcuts - name: Keyboard Shortcuts - Terminator binding - dconf: + community.general.dconf: key: /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding value: "'t'" state: present @@ -80,7 +80,7 @@ - keyboard-shortcuts - name: Keyboard Shortcuts - Terminator comand - dconf: + community.general.dconf: key: /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command value: "'/usr/bin/terminator'" state: present @@ -90,7 +90,7 @@ - keyboard-shortcuts - name: "Force alt + tab to switch only on current workspace" - dconf: + community.general.dconf: key: "/org/gnome/shell/app-switcher/current-workspace-only" value: "true" state: present diff --git a/roles/gnome/tasks/main.yml b/roles/gnome/tasks/main.yml index dea0a76..eac5f72 100644 --- a/roles/gnome/tasks/main.yml +++ b/roles/gnome/tasks/main.yml @@ -8,7 +8,7 @@ - gnome - name: Configure favourite apps in Gnome - dconf: + community.general.dconf: key: /org/gnome/shell/favorite-apps value: "['firefox.desktop', 'google-chrome.desktop', 'spotify.desktop', 'jetbrains-idea.desktop', \ 'jetbrains-goland.desktop', 'visual-studio-code.desktop', 'emacs.desktop', @@ -21,19 +21,19 @@ - gnome-favourite - name: Configure top bar - import_tasks: top-bar.yml + ansible.builtin.import_tasks: top-bar.yml - name: Configure peripherals - import_tasks: peripherals.yml + ansible.builtin.import_tasks: peripherals.yml - name: Configure keyboard shortcuts - import_tasks: keyboard-shortcuts.yml + ansible.builtin.import_tasks: keyboard-shortcuts.yml - name: Configure screensaver - import_tasks: screensaver.yml + ansible.builtin.import_tasks: screensaver.yml - name: Configure Dash to dock - import_tasks: dash-to-dock.yml + ansible.builtin.import_tasks: dash-to-dock.yml - name: Configure Window titlebars - import_tasks: window-titlebars.yml + ansible.builtin.import_tasks: window-titlebars.yml diff --git a/roles/gnome/tasks/peripherals.yml b/roles/gnome/tasks/peripherals.yml index 2229144..750463e 100644 --- a/roles/gnome/tasks/peripherals.yml +++ b/roles/gnome/tasks/peripherals.yml @@ -1,6 +1,6 @@ --- - name: Mouse - Locate pointer - dconf: + community.general.dconf: key: /org/gnome/settings-daemon/peripherals/mouse/locate-pointer value: "true" state: present @@ -10,7 +10,7 @@ - peripherals - name: Touchpad - Enable natural scrolling - dconf: + community.general.dconf: key: /org/gnome/desktop/peripherals/touchpad/natural-scroll value: "true" state: present @@ -20,7 +20,7 @@ - peripherals - name: Touchpad - Disable edge scrolling - dconf: + community.general.dconf: key: /org/gnome/desktop/peripherals/touchpad/edge-scrolling-enabled value: "false" state: present @@ -30,7 +30,7 @@ - peripherals - name: Touchpad - Enable two finger scrolling - dconf: + community.general.dconf: key: /org/gnome/desktop/peripherals/touchpad/two-finger-scrolling-enabled value: "true" state: present @@ -40,7 +40,7 @@ - peripherals - name: Touchpad - Disable while typing - dconf: + community.general.dconf: key: /org/gnome/desktop/peripherals/touchpad/disable-while-typing value: "true" state: present diff --git a/roles/gnome/tasks/screensaver.yml b/roles/gnome/tasks/screensaver.yml index b4e670b..605036c 100644 --- a/roles/gnome/tasks/screensaver.yml +++ b/roles/gnome/tasks/screensaver.yml @@ -1,6 +1,6 @@ --- - name: Screensaver - background - dconf: + community.general.dconf: key: /org/gnome/desktop/screensaver/picture-uri value: "'file:///usr/share/backgrounds/gnome/ColdWarm.jpg'" state: present @@ -10,7 +10,7 @@ - screensaver - name: Screensaver - background - dconf: + community.general.dconf: key: /org/gnome/desktop/screensaver/picture-options value: "'zoom'" state: present diff --git a/roles/gnome/tasks/top-bar.yml b/roles/gnome/tasks/top-bar.yml index 12170de..152d44a 100644 --- a/roles/gnome/tasks/top-bar.yml +++ b/roles/gnome/tasks/top-bar.yml @@ -1,6 +1,6 @@ --- - name: Top Bar - Enable date on clock - dconf: + community.general.dconf: key: /org/gnome/desktop/interface/clock-show-date value: "true" state: present @@ -10,7 +10,7 @@ - top-bar - name: Top Bar - Disable clock seconds - dconf: + community.general.dconf: key: /org/gnome/desktop/interface/clock-show-seconds value: "false" state: present @@ -20,7 +20,7 @@ - top-bar - name: Top Bar - Disable week dates on calendar - dconf: + community.general.dconf: key: /org/gnome/desktop/calendar/show-weekdate value: "false" state: present @@ -30,10 +30,10 @@ - top-bar - name: Top Bar - Add Time in Cape Town, South Africa - dconf: + community.general.dconf: key: /org/gnome/clocks/world-clocks value: "[{'location': <(uint32 2, <('Cape Town', 'FACT', true, \ - \ [(-0.59312105165164219, 0.3246312408709453)], [(-0.59195751045250755, 0.32143147639338654)])>)>}]" + \ [(-0.59312105165164219, 0.3246312408709453)], [(-0.59195751045250755, 0.32143147639338654)])>)>}]" state: present become_user: "{{ user_name }}" become: true @@ -41,7 +41,7 @@ - top-bar - name: Top Bar - Add Weather Locations - dconf: + community.general.dconf: key: /org/gnome/Weather/Application/locations value: "[<(uint32 2, <('London', 'EGLL', true, \ \ [(0.89855367075064974, -0.0078539816339744835)], [(0.89884456477707964, -0.0020362232784242244)])>)>, <(uint32\ @@ -53,7 +53,7 @@ - top-bar - name: Top Bar - Enable battery percentage - dconf: + community.general.dconf: key: /org/gnome/desktop/interface/show-battery-percentage value: "true" state: present diff --git a/roles/gnome/tasks/window-titlebars.yml b/roles/gnome/tasks/window-titlebars.yml index 6e8e889..96ea6d9 100644 --- a/roles/gnome/tasks/window-titlebars.yml +++ b/roles/gnome/tasks/window-titlebars.yml @@ -1,6 +1,6 @@ --- - name: Window titlebars - Button Layout - dconf: + community.general.dconf: key: /org/gnome/desktop/wm/preferences/button-layout value: "'close,minimize,maximize:appmenu'" state: present diff --git a/roles/security/tasks/main.yml b/roles/security/tasks/main.yml index e78fea5..5981155 100644 --- a/roles/security/tasks/main.yml +++ b/roles/security/tasks/main.yml @@ -10,7 +10,7 @@ - ufw - name: Configure Clamav - import_tasks: clamav.yml + ansible.builtin.import_tasks: clamav.yml - name: Configure ufw - import_tasks: ufw.yml + ansible.builtin.import_tasks: ufw.yml diff --git a/roles/users/tasks/main.yml b/roles/users/tasks/main.yml index d6caed3..6e4cd46 100644 --- a/roles/users/tasks/main.yml +++ b/roles/users/tasks/main.yml @@ -12,8 +12,8 @@ - storage - wheel state: present - ansible.builtin.shell: /bin/zsh + shell: /bin/zsh system: false - createhome: true + create_home: true home: /home/pmonteiro-work become: true diff --git a/roles/virtualization/tasks/main.yml b/roles/virtualization/tasks/main.yml index 1c8cea2..56dd147 100644 --- a/roles/virtualization/tasks/main.yml +++ b/roles/virtualization/tasks/main.yml @@ -25,7 +25,7 @@ - virtualization - name: Load the vboxdrv module - modprobe: + community.general.modprobe: name: vboxdrv state: present become: true @@ -34,7 +34,7 @@ - modprobe - name: Load the vboxnetadp module - modprobe: + community.general.modprobe: name: vboxnetadp state: present become: true @@ -43,7 +43,7 @@ - modprobe - name: Load the vboxnetflt module - modprobe: + community.general.modprobe: name: vboxnetflt state: present become: true From a87b0c7446553dcd045ba3eb3a7a537e6f64f9a2 Mon Sep 17 00:00:00 2001 From: Paulo Monteiro Date: Fri, 30 Jun 2023 00:27:50 +0100 Subject: [PATCH 3/4] fix: Commands should not change things if nothing needs doing --- handlers/freshclam.yml | 1 + handlers/zshrc.yml | 1 + roles/development/tasks/emacs-config.yml | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/handlers/freshclam.yml b/handlers/freshclam.yml index 647ae14..f7f18ae 100644 --- a/handlers/freshclam.yml +++ b/handlers/freshclam.yml @@ -1,6 +1,7 @@ --- - name: Update freshClam database ansible.builtin.command: freshclam + changed_when: true become: true tags: - security diff --git a/handlers/zshrc.yml b/handlers/zshrc.yml index bbbf8b2..23b3959 100644 --- a/handlers/zshrc.yml +++ b/handlers/zshrc.yml @@ -2,4 +2,5 @@ - name: Source zshrc ansible.builtin.shell: | source ~/.zshrc + changed_when: true listen: source .zshrc diff --git a/roles/development/tasks/emacs-config.yml b/roles/development/tasks/emacs-config.yml index 44113a4..b3734c2 100644 --- a/roles/development/tasks/emacs-config.yml +++ b/roles/development/tasks/emacs-config.yml @@ -13,7 +13,7 @@ ansible.builtin.shell: | set -o pipefail curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh - when: not prelude_modules_exists.stat.exists + changed_when: not prelude_modules_exists.stat.exists become_user: "{{ user_name }}" become: true tags: From ca9dddb0fb6b9e742d1953288d2bfde4c235f5a3 Mon Sep 17 00:00:00 2001 From: Paulo Monteiro Date: Fri, 30 Jun 2023 00:29:24 +0100 Subject: [PATCH 4/4] fix: Forbidden implicit octal value According to the ansible documentation: > "we now require users to always add quotes around octal values, so the YAML loaders will all load them as strings, providing a consistent behavior. This is also safer as JSON does not support octal values either." --- roles/base/tasks/main.yml | 2 +- roles/base/tasks/terminator.yml | 4 ++-- roles/base/tasks/zsh.yml | 2 +- roles/development/tasks/emacs-config.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 862c843..4aa053f 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -53,6 +53,6 @@ ansible.builtin.file: path: /home/{{ user_name }}/Workspace state: directory - mode: 0755 + mode: "0755" become_user: "{{ user_name }}" become: true diff --git a/roles/base/tasks/terminator.yml b/roles/base/tasks/terminator.yml index 7fdd141..02d3feb 100644 --- a/roles/base/tasks/terminator.yml +++ b/roles/base/tasks/terminator.yml @@ -3,7 +3,7 @@ ansible.builtin.file: path: /home/{{ user_name }}/.config/terminator state: directory - mode: 0764 + mode: "0764" become: true become_user: "{{ user_name }}" tags: @@ -15,7 +15,7 @@ dest: /home/{{ user_name }}/.config/terminator/config owner: "{{ user_name }}" group: "{{ user_name }}" - mode: 0644 + mode: "0644" become: true become_user: "{{ user_name }}" tags: diff --git a/roles/base/tasks/zsh.yml b/roles/base/tasks/zsh.yml index 931431e..8aac512 100644 --- a/roles/base/tasks/zsh.yml +++ b/roles/base/tasks/zsh.yml @@ -28,7 +28,7 @@ dest: /home/{{ user_name }}/.zshrc owner: "{{ user_name }}" group: "{{ user_name }}" - mode: 0644 + mode: "0644" become: true become_user: "{{ user_name }}" when: not zsh_file_check.stat.exists diff --git a/roles/development/tasks/emacs-config.yml b/roles/development/tasks/emacs-config.yml index b3734c2..1d0ba42 100644 --- a/roles/development/tasks/emacs-config.yml +++ b/roles/development/tasks/emacs-config.yml @@ -26,7 +26,7 @@ dest: /home/{{ user_name }}/.emacs.d/ owner: "{{ user_name }}" group: "{{ user_name }}" - mode: 0644 + mode: "0644" become_user: "{{ user_name }}" become: true tags: