2023-11-13 09:33:28 -05:00
|
|
|
# ansible
|
|
|
|
|
|
|
|
Ansible environment in Qubes OS.
|
|
|
|
|
|
|
|
## Table of Contents
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* [Description](#description)
|
|
|
|
* [Installation](#installation)
|
|
|
|
* [Usage](#usage)
|
2023-11-13 09:33:28 -05:00
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
Install Ansible and use it on the "ansible" app qube.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* Top:
|
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl top.enable ansible
|
|
|
|
sudo qubesctl --targets=tpl-ansible,ansible,ansible-minion state.apply
|
|
|
|
sudo qubesctl top.disable ansible
|
2023-11-13 09:33:28 -05:00
|
|
|
```
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* State
|
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
<!-- pkg:begin:post-install -->
|
2024-07-04 11:10:11 -04:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl state.apply ansible.create
|
|
|
|
sudo qubesctl --skip-dom0 --targets=tpl-ansible state.apply ansible.install
|
2023-11-13 09:33:28 -05:00
|
|
|
```
|
2024-07-04 11:10:11 -04:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
<!-- pkg:end:post-install -->
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2024-06-25 16:16:26 -04:00
|
|
|
From the control node `ansible`, test connection to the managed node
|
2023-11-13 09:33:28 -05:00
|
|
|
`ansible-minion`:
|
2024-07-04 11:10:11 -04:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
2024-06-25 16:16:26 -04:00
|
|
|
ssh -p 1840 user@127.0.0.1
|
2023-11-13 09:33:28 -05:00
|
|
|
```
|