hussainweb.chezmoi

Ansible Chezmoi

This Ansible role installs chezmoi on Ubuntu and Debian servers.

Requirements

If you choose to install chezmoi using "snap" by setting the chezmoi_install_method, make sure to have snap installed on the server.

Role Variables

All variables can be found in the defaults/main.yml file.

chezmoi_install_method: "download"

Change this to "snap" to use snap for the installation. Currently, other package managers are not supported. If you use a different value, the role will download either a deb or rpm file based on the operating system and install it.

chezmoi_version: ""

Specify the version of chezmoi you want to install here. If left empty, it will automatically download the latest version from Github. Note that this variable is not needed if chezmoi_install_method is set to "snap".

IMPORTANT: The version must match a tag name on Github. For example, "v2.1.2" (remember the 'v' at the start).

chezmoi_init_url: ""

Input the URL of your repository that contains the dotfiles for chezmoi. This URL will be directly used by chezmoi, allowing you to take advantage of all the features chezmoi supports. For example, if your GitHub repository is named dotfiles, set this variable to your GitHub username.

If this variable is not set, chezmoi will run the init command without any options.

Dependencies

This playbook requires only Ansible's community.general collection to function.

Example Playbook

Still being worked on.

- hosts: servers
  roles:
    - { role: hussainweb.chezmoi, chezmoi_init_url: "github_username" }

License

MIT

Author Information

Get to know me better.

Informazioni sul progetto

install chezmoi

Installa
ansible-galaxy install hussainweb.chezmoi
Licenza
mit
Download
433
Proprietario