dandyrow / dandyrow.linux / 2.6.0 / module / stow Module to interact with the GNU stow symbolic link manager. | "added in version" 1.0.0 of dandyrow.linux" Authors: Daniel Lowry (@dandyrow)dandyrow.linux.stow (2.6.0) — module
Install with ansible-galaxy collection install dandyrow.linux:==2.6.0
collections: - name: dandyrow.linux version: 2.6.0
Module to interact with the GNU stow symbolic link manager.
# Symlink zsh config files from dotfiles folder to home folder - name: Stow zsh dotfiles into home dandyrow.stow.stow: src: ~/.dotfiles package: [ zsh ]
# Remove symlink of pacman config files from /etc - name: Remove pacman config become: yes dandyrow.stow.stow: src: ~/.dotfiles dest: /etc/pacman.conf package: - pacman state: absent
# Force the deletion of any conflicting files when stowing - name: Forcefully stow terminal configs dandyrow.stow.stow: src: ~/.dotfiles package: - zsh - neofetch - starship force: Yes
# Delete and re-stow git config - name: Restow gitconfig dandyrow.stow.stow: src: ~/.dotfiles package: [ git ] state: restow
src: aliases: - dir description: The source path of the folders (packages) containing files to create symlinks for. required: true type: path dest: aliases: - target description: The target path where the symlinks will be created. required: false type: path force: default: false description: Whether to delete conflicting files in destination directory. type: bool state: choices: - present - absent - restow default: present description: Indicates the desired action for the module to carry out. type: str package: aliases: - pkg description: Name(s) of folders containing the files to be symlinked. elements: str required: true type: list