qusal/salt/ansible/README.md

44 lines
739 B
Markdown
Raw Normal View History

2023-11-13 09:33:28 -05:00
# ansible
Ansible environment in Qubes OS.
## Table of Contents
* [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
* Top:
2023-11-13 09:33:28 -05:00
```sh
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
```
* State
2023-11-13 09:33:28 -05:00
<!-- pkg:begin:post-install -->
2023-11-13 09:33:28 -05:00
```sh
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
```
2023-11-13 09:33:28 -05:00
<!-- pkg:end:post-install -->
## Usage
From the control node `ansible`, test connection to the managed node
2023-11-13 09:33:28 -05:00
`ansible-minion`:
2023-11-13 09:33:28 -05:00
```sh
ssh -p 1840 user@127.0.0.1
2023-11-13 09:33:28 -05:00
```