Skip to content

📝 Usage

On the managed node that you'd like to run the playbook.

Code

ansible-pull -U https://github.com/nicholaswilde/homelab-pull.git -i "$(uname -n),"

Note

The comma , is required after $(uname -n)

tpm

Sometimes the tpm doesn't install automatically and so it can be installed manually.

  1. Run tmux.
  2. Press Ctrl + b + I

A homelab-pull service and timer are installed to periodically run the playbook.

🔖 Tags

Individual task files can be tested by using tags, such as tmux.

- name: Setup tmux
  ansible.builtin.include_tasks: 
    file: "tmux.yaml"
    apply:
      tags:
        - tmux
  tags:
    - always

Tag tmux

ansible-pull --tags tmux -U http://github.com/nicholaswilde/homelab-pull.git -i "$(uname -n)," 

📁 Logs

View the logs.

Code

journalctl -xeu homelab-pull