added tags to roles
This commit is contained in:
24
README.md
24
README.md
@@ -5,3 +5,27 @@ ansible-playbook -i inventory.ini ansible-playbook.yml --ask-become-pass
|
|||||||
```
|
```
|
||||||
|
|
||||||
Internal Applications for home use all in Podman Ansible playbooks
|
Internal Applications for home use all in Podman Ansible playbooks
|
||||||
|
|
||||||
|
## Running individual roles
|
||||||
|
|
||||||
|
Each role is tagged with its name — run one or more with `--tags`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Run one role
|
||||||
|
ansible-playbook -i inventory.ini ansible-playbook.yml --tags minecraft --ask-become-pass
|
||||||
|
|
||||||
|
# Run several
|
||||||
|
ansible-playbook -i inventory.ini ansible-playbook.yml --tags "jellyfin,gitea" --ask-become-pass
|
||||||
|
|
||||||
|
# Pre-pull all images only
|
||||||
|
ansible-playbook -i inventory.ini ansible-playbook.yml --tags images --ask-become-pass
|
||||||
|
|
||||||
|
# Skip one
|
||||||
|
ansible-playbook -i inventory.ini ansible-playbook.yml --skip-tags wazuh --ask-become-pass
|
||||||
|
|
||||||
|
# Full run (no --tags) — unchanged behavior
|
||||||
|
```
|
||||||
|
|
||||||
|
Tags: `packages`, `directories`, `sysctl`, `network`, `wireguard`, `npm`, `gitea`, `jellyfin`, `wazuh`, `minecraft`, `images`
|
||||||
|
|
||||||
|
Note: `--tags` runs skip the bulk image pull (tagged `images`); containers auto-pull their image on deploy (`podman_container` pull policy defaults to `missing`).
|
||||||
@@ -8,16 +8,28 @@
|
|||||||
containers.podman.podman_image:
|
containers.podman.podman_image:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
loop: "{{ images }}"
|
loop: "{{ images }}"
|
||||||
|
tags:
|
||||||
|
- images
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- packages
|
- role: packages
|
||||||
- directories
|
tags: [packages]
|
||||||
- sysctl
|
- role: directories
|
||||||
- network
|
tags: [directories]
|
||||||
- wireguard
|
- role: sysctl
|
||||||
- npm
|
tags: [sysctl]
|
||||||
- gitea
|
- role: network
|
||||||
- jellyfin
|
tags: [network]
|
||||||
- wazuh
|
- role: wireguard
|
||||||
- minecraft
|
tags: [wireguard]
|
||||||
|
- role: npm
|
||||||
|
tags: [npm]
|
||||||
|
- role: gitea
|
||||||
|
tags: [gitea]
|
||||||
|
- role: jellyfin
|
||||||
|
tags: [jellyfin]
|
||||||
|
- role: wazuh
|
||||||
|
tags: [wazuh]
|
||||||
|
- role: minecraft
|
||||||
|
tags: [minecraft]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user