Make task names more specific

This commit is contained in:
Anthony Rose 2022-08-18 16:57:20 +01:00
parent 67ff07aafc
commit 8ffb0a4772
4 changed files with 47 additions and 41 deletions

View file

@ -13,38 +13,44 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
- name: Set HOME permissions - name: Set $HOME permissions
ansible.builtin.file: ansible.builtin.file:
path: "{{ ansible_env.HOME }}" path: "{{ ansible_env.HOME }}"
state: directory state: directory
mode: '0700' mode: '0700'
- name: Create user bin directory - name: Create $HOME/.local
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.local"
state: directory
mode: '0700'
- name: Create $HOME/.local/bin
ansible.builtin.file: ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.local/bin" path: "{{ ansible_env.HOME }}/.local/bin"
state: directory state: directory
mode: '0700' mode: '0700'
- name: Create systemd user directory - name: Create $XDG_CONFIG_HOME
ansible.builtin.file:
path: "{{ ansible_env.XDG_CONFIG_HOME }}"
state: directory
mode: '0700'
- name: Create $XDG_CONFIG_HOME/systemd/user
ansible.builtin.file: ansible.builtin.file:
path: "{{ ansible_env.XDG_CONFIG_HOME }}/systemd/user" path: "{{ ansible_env.XDG_CONFIG_HOME }}/systemd/user"
state: directory state: directory
- name: Create ~/.ssh directory - name: Create $HOME/.ssh
ansible.builtin.file: ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.ssh" path: "{{ ansible_env.HOME }}/.ssh"
state: directory state: directory
mode: '0700' mode: '0700'
- name: Create ~/.config directory - name: Create $XDG_CONFIG_HOME/git
ansible.builtin.file:
path: "{{ ansible_env.XDG_CONFIG_HOME }}"
state: directory
- name: Create ~/.config/git directory
ansible.builtin.file: ansible.builtin.file:
path: "{{ ansible_env.XDG_CONFIG_HOME }}/git" path: "{{ ansible_env.XDG_CONFIG_HOME }}/git"
state: directory state: directory
- name: Create ~/.config/mc directory - name: Create $XDG_CONFIG_HOME/mc
ansible.builtin.file: ansible.builtin.file:
path: "{{ ansible_env.XDG_CONFIG_HOME }}/mc" path: "{{ ansible_env.XDG_CONFIG_HOME }}/mc"
state: directory state: directory
- name: Create ~/.config/powershell directory - name: Create $XDG_CONFIG_HOME/powershell
ansible.builtin.file: ansible.builtin.file:
path: "{{ ansible_env.XDG_CONFIG_HOME }}/powershell" path: "{{ ansible_env.XDG_CONFIG_HOME }}/powershell"
state: directory state: directory

View file

@ -13,60 +13,60 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
- name: Copy .gemrc - name: Create $HOME/.gemrc
ansible.builtin.copy: ansible.builtin.copy:
src: gemrc src: gemrc
dest: "{{ ansible_env.HOME }}/.gemrc" dest: "{{ ansible_env.HOME }}/.gemrc"
- name: Remove .hushlogin - name: Remove $HOME/.hushlogin
ansible.builtin.file: ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.hushlogin" path: "{{ ansible_env.HOME }}/.hushlogin"
state: absent state: absent
- name: Copy .tmux.conf - name: Create $HOME/.tmux.conf
ansible.builtin.copy: ansible.builtin.copy:
src: tmux.conf src: tmux.conf
dest: "{{ ansible_env.HOME }}/.tmux.conf" dest: "{{ ansible_env.HOME }}/.tmux.conf"
- name: Copy openpgp.asc - name: Create $XDG_CONFIG_HOME/openpgp.asc
ansible.builtin.copy: ansible.builtin.copy:
src: openpgp.asc src: openpgp.asc
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/openpgp.asc" dest: "{{ ansible_env.XDG_CONFIG_HOME }}/openpgp.asc"
- name: Copy .dput.cf - name: Create $HOME/.dput.cf
ansible.builtin.copy: ansible.builtin.copy:
src: dput.cf src: dput.cf
dest: "{{ ansible_env.HOME }}/.dput.cf" dest: "{{ ansible_env.HOME }}/.dput.cf"
- name: Copy .mailcap - name: Create $HOME/.mailcap
ansible.builtin.copy: ansible.builtin.copy:
src: mailcap src: mailcap
dest: "{{ ansible_env.HOME }}/.mailcap" dest: "{{ ansible_env.HOME }}/.mailcap"
- name: Copy .config/git/config - name: Create $XDG_CONFIG_HOME/git/config
ansible.builtin.copy: ansible.builtin.copy:
src: gitconfig src: gitconfig
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/git/config" dest: "{{ ansible_env.XDG_CONFIG_HOME }}/git/config"
- name: Copy .quiltrc-dpkg - name: Create $HOME/.quiltrc-dpkg
ansible.builtin.copy: ansible.builtin.copy:
src: quiltrc-dpkg src: quiltrc-dpkg
dest: "{{ ansible_env.HOME }}/.quiltrc-dpkg" dest: "{{ ansible_env.HOME }}/.quiltrc-dpkg"
- name: Copy .editorconfig - name: Create $XDG_CONFIG_HOME/editorconfig
ansible.builtin.copy: ansible.builtin.copy:
src: editorconfig src: editorconfig
dest: "{{ ansible_env.HOME }}/.editorconfig" dest: "{{ ansible_env.XDG_CONFIG_HOME }}/editorconfig"
- name: Copy .clang-format - name: Create $XDG_CONFIG_HOME/clang-format
ansible.builtin.copy: ansible.builtin.copy:
src: clang-format src: clang-format
dest: "{{ ansible_env.HOME }}/.clang-format" dest: "{{ ansible_env.XDG_CONFIG_HOME }}/clang-format"
- name: Copy docutils setup script - name: Create $HOME/.local/bin/docutils-setup
ansible.builtin.copy: ansible.builtin.copy:
src: docutils-setup.sh src: docutils-setup.sh
dest: "{{ ansible_env.HOME }}/.local/bin/docutils-setup" dest: "{{ ansible_env.HOME }}/.local/bin/docutils-setup"
mode: '0755' mode: '0755'
- name: Copy mc ini - name: Create $XDG_CONFIG_HOME/mc/ini
ansible.builtin.copy: ansible.builtin.copy:
src: mc.ini src: mc.ini
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/mc/ini" dest: "{{ ansible_env.XDG_CONFIG_HOME }}/mc/ini"
- name: Copy mc panels.ini - name: Create $XDG_CONFIG_HOME/mc/panels.ini
ansible.builtin.copy: ansible.builtin.copy:
src: mc.panels.ini src: mc.panels.ini
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/mc/panels.ini" dest: "{{ ansible_env.XDG_CONFIG_HOME }}/mc/panels.ini"
- name: Copy Microsoft.PowerShell_profile.ps1 - name: Create $XDG_CONFIG_HOME/powershell/Microsoft.PowerShell_profile.ps1
ansible.builtin.copy: ansible.builtin.copy:
src: Microsoft.PowerShell_profile.ps1 src: Microsoft.PowerShell_profile.ps1
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/powershell/Microsoft.PowerShell_profile.ps1" dest: "{{ ansible_env.XDG_CONFIG_HOME }}/powershell/Microsoft.PowerShell_profile.ps1"

View file

@ -13,23 +13,23 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
- name: Create user applications directory - name: Create $XDG_DATA_HOME/applications
ansible.builtin.file: ansible.builtin.file:
path: "{{ ansible_env.XDG_DATA_HOME }}/applications" path: "{{ ansible_env.XDG_DATA_HOME }}/applications"
state: directory state: directory
- name: Create user autostart directory - name: Create $XDG_CONFIG_HOME/autostart
ansible.builtin.file: ansible.builtin.file:
path: "{{ ansible_env.XDG_CONFIG_HOME }}/autostart" path: "{{ ansible_env.XDG_CONFIG_HOME }}/autostart"
state: directory state: directory
- name: Create ~/.fvwm directory - name: Create $HOME/.fvwm
ansible.builtin.file: ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.fvwm" path: "{{ ansible_env.HOME }}/.fvwm"
state: directory state: directory
- name: Create ~/.local/share/fonts directory - name: Create $XDG_DATA_HOME/fonts
ansible.builtin.file: ansible.builtin.file:
path: "{{ ansible_env.XDG_DATA_HOME }}/fonts" path: "{{ ansible_env.XDG_DATA_HOME }}/fonts"
state: directory state: directory
- name: Create ~/.config/fontconfig directory - name: Create $XDG_CONFIG_HOME/fontconfig
ansible.builtin.file: ansible.builtin.file:
path: "{{ ansible_env.XDG_CONFIG_HOME }}/fontconfig" path: "{{ ansible_env.XDG_CONFIG_HOME }}/fontconfig"
state: directory state: directory

View file

@ -13,43 +13,43 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
- name: Copy .Xresources - name: Create $HOME/.Xresources
ansible.builtin.copy: ansible.builtin.copy:
src: Xresources src: Xresources
dest: "{{ ansible_env.HOME }}/.Xresources" dest: "{{ ansible_env.HOME }}/.Xresources"
- name: Create stalonetrayrc - name: Create $HOME/.stalonetrayrc
ansible.builtin.copy: ansible.builtin.copy:
src: stalonetrayrc src: stalonetrayrc
dest: "{{ ansible_env.HOME }}/.stalonetrayrc" dest: "{{ ansible_env.HOME }}/.stalonetrayrc"
- name: Create fvwm config file - name: Create $HOME/.fvwm/config
ansible.builtin.copy: ansible.builtin.copy:
src: fvwmrc src: fvwmrc
dest: "{{ ansible_env.HOME }}/.fvwm/config" dest: "{{ ansible_env.HOME }}/.fvwm/config"
- name: Create NetBSD xsession file - name: Create NetBSD $HOME/.xsession
ansible.builtin.copy: ansible.builtin.copy:
src: xsession-netbsd src: xsession-netbsd
dest: "{{ ansible_env.HOME }}/.xsession" dest: "{{ ansible_env.HOME }}/.xsession"
when: ansible_system == "NetBSD" when: ansible_system == "NetBSD"
- name: Create xinitrc symlink - name: Create NetBSD $HOME/.xinitrc
ansible.builtin.file: ansible.builtin.file:
src: ".xsession" src: ".xsession"
dest: "{{ ansible_env.HOME }}/.xinitrc" dest: "{{ ansible_env.HOME }}/.xinitrc"
state: link state: link
when: ansible_system == "NetBSD" when: ansible_system == "NetBSD"
- name: Load ~/.Xresources - name: Create $XDG_CONFIG_HOME/autostart/xrdb.desktop
ansible.builtin.copy: ansible.builtin.copy:
src: "xrdb.desktop" src: "xrdb.desktop"
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/autostart/xrdb.desktop" dest: "{{ ansible_env.XDG_CONFIG_HOME }}/autostart/xrdb.desktop"
when: ansible_distribution == "Fedora" or ansible_distribution == "Debian" when: ansible_distribution == "Fedora" or ansible_distribution == "Debian"
- name: Add to-do list launcher - name: Create $XDG_DATA_HOME/applications/todo.desktop
ansible.builtin.template: ansible.builtin.template:
src: todo.desktop src: todo.desktop
dest: "{{ ansible_env.XDG_DATA_HOME }}/applications/todo.desktop" dest: "{{ ansible_env.XDG_DATA_HOME }}/applications/todo.desktop"
- name: Copy .xbindkeysrc - name: Create $HOME/.xbindkeysrc
ansible.builtin.copy: ansible.builtin.copy:
src: "xbindkeysrc" src: "xbindkeysrc"
dest: "{{ ansible_env.HOME }}/.xbindkeysrc" dest: "{{ ansible_env.HOME }}/.xbindkeysrc"
- name: Copy fonts.conf - name: Create $XDG_CONFIG_HOME/fontconfig/fonts.conf
ansible.builtin.copy: ansible.builtin.copy:
src: "fonts.conf" src: "fonts.conf"
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/fontconfig/fonts.conf" dest: "{{ ansible_env.XDG_CONFIG_HOME }}/fontconfig/fonts.conf"