-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 1.28 KB
/
param_ansible_integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Parameterized Ansible Integration
on:
repository_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
run: echo The container deployment has started
- name: check out
uses: actions/checkout@v1
- name: check ansible version
run: ansible --version
- name: print the parsed variable value
#run: echo "Tags: ${{ github.event.inputs.tags }}"
run: echo "Log level: ${{ github.event.inputs.tags }}"
#- name: Authentication between control node and remote host
# run: ssh-copy-id [email protected]
- name: echo value
run: |
echo ${{ github.event.client_payload.var }}
- name: adding timestamp
#run: echo -n \[\$(date +%H:%M:%S)\\]
uses: gerred/actions/current-time@master
id: current-time
- name: Use current time
env:
TIME: "${{ steps.current-time.outputs.time }}"
run: echo "$TIME"
- name: Run Ansible Playbook
#run: sudo apt install ansible | sudo ansible-playbook -i hosts param_container_dep.yml --extra-vars "default_container_name='$TIME'" -vvv
run: sudo apt install ansible | sudo ansible-playbook -i hosts param_container_dep.yml -vvv