dandyrow.linux.stow module – Module to interact with the GNU stow symbolic link manager.
Note
This module is part of the dandyrow.linux collection (version 2.6.0).
To install it, use: ansible-galaxy collection install dandyrow.linux
.
To use it in a playbook, specify: dandyrow.linux.stow
.
New in dandyrow.linux 1.0.0
Synopsis
Module to interact with the GNU stow symbolic link manager.
Parameters
Parameter |
Comments |
---|---|
The target path where the symlinks will be created. |
|
Whether to delete conflicting files in destination directory. Choices:
|
|
Name(s) of folders containing the files to be symlinked. |
|
The source path of the folders (packages) containing files to create symlinks for. |
|
Indicates the desired action for the module to carry out. Choices:
|
Examples
# 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