https://github.com/soofstad/ansible-cm
Testing out ansible-pull based GitOps
https://github.com/soofstad/ansible-cm
Last synced: 3 months ago
JSON representation
Testing out ansible-pull based GitOps
- Host: GitHub
- URL: https://github.com/soofstad/ansible-cm
- Owner: soofstad
- Created: 2021-07-14T05:57:47.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-16T08:49:06.000Z (almost 5 years ago)
- Last Synced: 2025-02-28T22:32:59.533Z (over 1 year ago)
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
This is an Ansible pull based setup. With no control node
## Subscribe a new host
1. Create a new file for the node named _{new_node_hostname}.yml_.
```yaml
---
- name: Playbook for the {new_node_hostname} node
hosts: {new_node_hostname}
roles:
- common
```
2. Install Ansible on the node
3. Run;
`ansible-pull -d /etc/ansible/ansible-cm --checkout master -U https://github.com/soofstad/ansible-cm -i "$(hostname)," "$(hostname).yml"`
Done!
The host will now pull and apply playbooks from this repo every hour