Skip to content

Commit

Permalink
Move Ansible modules dependency to Galaxy
Browse files Browse the repository at this point in the history
Only keep Ansible-Core as OS dependency and move all needed Ansible
modules installation to use ansible-galaxy.
  • Loading branch information
mpagot committed Oct 30, 2023
1 parent 7b0a83c commit 87dabb9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Tools needed

* Python 3.9
* terraform v1.3.6
* ansible 6.5.0 (ansible-core 2.13.5). Please refer to the **requirements.txt** file
* ansible-core 2.13.5 : please refer to the **requirements.txt** file
* cloud provider cli tools (`az`, `aws`, `gcloud`)

The Python requirements could be managed with a virtual environment
Expand All @@ -21,6 +21,12 @@ source venv/bin/activate
pip install -r requirements.txt
```

Ansible dependency are managed separately. After the installation of the Ansible core the following command has to be executed:

```shell
ansible-galaxy install -r requirements.yml
```

Prepare a ssh key pair

```shell
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ansible==6.5.0
ansible-compat==2.2.1
ansible-core==2.13.5
awscli==1.29.4
jmespath==0.10.0
8 changes: 8 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
collections:
- name: community.crypto
version: 2.15.1
- name: ansible.posix
version: 1.5.4
- name: community.general
version: 6.5.0

0 comments on commit 87dabb9

Please sign in to comment.