|
27 | 27 | repo-token: ${{ secrets.GITHUB_TOKEN }} |
28 | 28 | pr-message: |- |
29 | 29 | Congrats on opening your first pull request and thank you for taking the time to help improve Ansible-Lockdown! |
30 | | - Please join in the conversation happening on the [Discord Server](https://discord.io/ansible-lockdown) as well. |
| 30 | + Please join in the conversation happening on the [Discord Server](https://www.lockdownenterprise.com/discord) as well. |
31 | 31 |
|
32 | | - # This workflow contains a single job which tests the playbook |
| 32 | + # This workflow contains a single job that tests the playbook |
33 | 33 | playbook-test: |
34 | 34 | # The type of runner that the job will run on |
35 | 35 | runs-on: ubuntu-latest |
|
44 | 44 |
|
45 | 45 | steps: |
46 | 46 | - name: Clone ${{ github.event.repository.name }} |
47 | | - uses: actions/checkout@v3 |
| 47 | + uses: actions/checkout@v4 |
48 | 48 | with: |
49 | 49 | ref: ${{ github.event.pull_request.head.sha }} |
50 | 50 |
|
51 | 51 | # Pull in terraform code for linux servers |
52 | | - - name: Clone github IaC plan |
53 | | - uses: actions/checkout@v3 |
| 52 | + - name: Clone GitHub IaC plan |
| 53 | + uses: actions/checkout@v4 |
54 | 54 | with: |
55 | 55 | repository: ansible-lockdown/github_linux_IaC |
56 | 56 | path: .github/workflows/github_linux_IaC |
|
74 | 74 | pwd |
75 | 75 | ls |
76 | 76 | env: |
77 | | - # Imported from github variables this is used to load the relvent OS.tfvars file |
| 77 | + # Imported from GitHub variables this is used to load the relevant OS.tfvars file |
78 | 78 | OSVAR: ${{ vars.OSVAR }} |
79 | 79 | benchmark_type: ${{ vars.BENCHMARK_TYPE }} |
80 | 80 |
|
81 | 81 | - name: Terraform_Init |
82 | 82 | id: init |
83 | 83 | run: terraform init |
84 | 84 | env: |
85 | | - # Imported from github variables this is used to load the relvent OS.tfvars file |
| 85 | + # Imported from GitHub variables this is used to load the relevant OS.tfvars file |
86 | 86 | OSVAR: ${{ vars.OSVAR }} |
87 | 87 | TF_VAR_benchmark_type: ${{ vars.BENCHMARK_TYPE }} |
88 | 88 |
|
89 | 89 | - name: Terraform_Validate |
90 | 90 | id: validate |
91 | 91 | run: terraform validate |
92 | 92 | env: |
93 | | - # Imported from github variables this is used to load the relvent OS.tfvars file |
| 93 | + # Imported from GitHub variables this is used to load the relevant OS.tfvars file |
94 | 94 | OSVAR: ${{ vars.OSVAR }} |
95 | 95 | TF_VAR_benchmark_type: ${{ vars.BENCHMARK_TYPE }} |
96 | 96 |
|
|
111 | 111 | # Aws deployments taking a while to come up insert sleep or playbook fails |
112 | 112 |
|
113 | 113 | - name: Sleep for 60 seconds |
114 | | - run: sleep 60s |
| 114 | + run: sleep ${{ vars.BUILD_SLEEPTIME }} |
115 | 115 |
|
116 | | - # Run the ansible playbook |
| 116 | + # Run the Ansibleplaybook |
117 | 117 | - name: Run_Ansible_Playbook |
118 | 118 | uses: arillso/action.playbook@master |
119 | 119 | with: |
|
125 | 125 | env: |
126 | 126 | ANSIBLE_HOST_KEY_CHECKING: "false" |
127 | 127 | ANSIBLE_DEPRECATION_WARNINGS: "false" |
| 128 | + ANSIBLE_INJECT_FACT_VARS: "false" |
128 | 129 |
|
129 | 130 | # Remove test system - User secrets to keep if necessary |
130 | 131 |
|
|
0 commit comments