Compare commits

..

2 commits

Author SHA1 Message Date
4710231c91
Remove sudo in tests
Some checks failed
Lint / test (push) Waiting to run
Trivy / test (push) Waiting to run
CI / test (push) Has been cancelled
2025-12-15 11:57:33 +11:00
d50f1505bb
Update README.md 2025-12-15 11:56:38 +11:00
2 changed files with 5 additions and 5 deletions

View file

@ -45,24 +45,24 @@ poetry run enroll --help
## Usage ## Usage
On the host (root recommended): On the host (root recommended to harvest as much data as possible):
### 1. Harvest state/information about the host ### 1. Harvest state/information about the host
```bash ```bash
sudo poetry run enroll harvest --out /tmp/enroll-harvest enroll harvest --out /tmp/enroll-harvest
``` ```
### 2. Generate Ansible manifests (roles/playbook) from that harvest ### 2. Generate Ansible manifests (roles/playbook) from that harvest
```bash ```bash
sudo poetry run enroll manifest --harvest /tmp/enroll-harvest --out /tmp/enroll-ansible enroll manifest --harvest /tmp/enroll-harvest --out /tmp/enroll-ansible
``` ```
### Alternatively, do both steps in one shot: ### Alternatively, do both steps in one shot:
```bash ```bash
sudo poetry run enroll enroll --harvest /tmp/enroll-harvest --out /tmp/enroll-ansible enroll enroll --harvest /tmp/enroll-harvest --out /tmp/enroll-ansible
``` ```
Then run: Then run:

View file

@ -21,4 +21,4 @@ builtin cd "${ANSIBLE_DIR}"
ansible-lint "${ANSIBLE_DIR}" ansible-lint "${ANSIBLE_DIR}"
# Run # Run
sudo ansible-playbook playbook.yml -i "localhost," -c local --check --diff ansible-playbook playbook.yml -i "localhost," -c local --check --diff