Compare commits
2 commits
68e797a054
...
4710231c91
| Author | SHA1 | Date | |
|---|---|---|---|
| 4710231c91 | |||
| d50f1505bb |
2 changed files with 5 additions and 5 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
2
tests.sh
2
tests.sh
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue