Trying Ansible actions
This commit is contained in:
@@ -12,12 +12,18 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
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
|
||||
run: |
|
||||
docker pull ubuntu
|
||||
docker run \
|
||||
-v ${{ gitea.workspace }}:/runner/project \
|
||||
-w /runner/project \
|
||||
ubuntu \
|
||||
ansible-playbook -i inventory.yml ping.yml
|
||||
|
||||
Reference in New Issue
Block a user