Trying Ansible actions
This commit is contained in:
@@ -12,12 +12,18 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: '3.9'
|
||||||
|
|
||||||
|
- name: Install Ansible
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install ansible
|
||||||
|
|
||||||
|
|
||||||
- name: Run Ansible Playbook
|
- name: Run Ansible Playbook
|
||||||
run: |
|
run: |
|
||||||
docker pull ubuntu
|
|
||||||
docker run \
|
|
||||||
-v ${{ gitea.workspace }}:/runner/project \
|
|
||||||
-w /runner/project \
|
|
||||||
ubuntu \
|
|
||||||
ansible-playbook -i inventory.yml ping.yml
|
ansible-playbook -i inventory.yml ping.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user