democratech / 2022

4 stars 2 forks source link

Run ansible-playbook in the CI #3

Open JMLX42 opened 3 years ago

jerome-caucat commented 3 years ago

@JMLX42 I can take care of this.

We can use https://github.com/dawidd6/action-ansible-playbook: a GitHub Action to run ansible playbook.

Where should the playbook be run? If we don't need to run it on a machine that we host ourselves we can use a linux runner hosted by GitHub, the playbook will execute on a fresh virtual machine each time.

JMLX42 commented 3 years ago

@jerome-caucat that looks good. IMHO the only issue is that we have to store some secrets first such as:

https://github.com/democratech/2022/issues/18

Then set the "master" password of the vault as a secret GitHub Action variable.