Add check-sudo role to avoid hanging with wrong become passwords during play

This commit is contained in:
flyingscorpio@clevo 2022-02-26 19:01:45 +01:00
parent 107964fb16
commit 5266b420a2
19 changed files with 43 additions and 0 deletions

3
roles/base/meta/main.yml Normal file
View file

@ -0,0 +1,3 @@
---
dependencies:
- role: check-sudo

View file

@ -1,4 +1,5 @@
---
dependencies:
- role: check-sudo
- role: git
- role: shell

View file

@ -0,0 +1,5 @@
---
- name: Check sudo password first
become: true
command: echo "sudo password correct"
changed_when: false

View file

@ -0,0 +1,3 @@
---
dependencies:
- role: check-sudo

3
roles/git/meta/main.yml Normal file
View file

@ -0,0 +1,3 @@
---
dependencies:
- role: check-sudo

View file

@ -1,3 +1,4 @@
---
dependencies:
- role: check-sudo
- role: git

View file

@ -1,3 +1,4 @@
---
dependencies:
- role: check-sudo
- role: git

View file

@ -1,3 +1,4 @@
---
dependencies:
- role: check-sudo
- role: git

View file

@ -0,0 +1,3 @@
---
dependencies:
- role: check-sudo

View file

@ -0,0 +1,3 @@
---
dependencies:
- role: check-sudo

View file

@ -1,3 +1,4 @@
---
dependencies:
- role: check-sudo
- role: vim

View file

@ -0,0 +1,3 @@
---
dependencies:
- role: check-sudo

View file

@ -1,3 +1,4 @@
---
dependencies:
- role: check-sudo
- role: git

View file

@ -1,4 +1,5 @@
---
dependencies:
- role: check-sudo
- role: git
- role: secrets-repo

View file

@ -0,0 +1,3 @@
---
dependencies:
- role: check-sudo

View file

@ -0,0 +1,3 @@
---
dependencies:
- role: check-sudo

3
roles/tor/meta/main.yml Normal file
View file

@ -0,0 +1,3 @@
---
dependencies:
- role: check-sudo

3
roles/vim/meta/main.yml Normal file
View file

@ -0,0 +1,3 @@
---
dependencies:
- role: check-sudo

View file

@ -1,4 +1,5 @@
---
dependencies:
- role: check-sudo
- role: git
- role: shell