diff --git a/ci/samba-dc.jenkinsfile b/ci/samba-dc.jenkinsfile index 9d9d143..fcf0cfa 100644 --- a/ci/samba-dc.jenkinsfile +++ b/ci/samba-dc.jenkinsfile @@ -20,6 +20,24 @@ pipeline { } } + stage('Remount R/W') { + steps { + withCredentials([file( + credentialsId: 'vault-jenkins@pyrocufflink.blue', + variable: 'SUDO_PASS_FILE')]) { + ansiblePlaybook \ + playbook: 'remount.yml', + limit: 'samba-dc', + become: true, + vaultCredentialsId: 'ansible-vault', + extraVars: [ + remount_state: 'rw', + ], + extras: '-e@"${SUDO_PASS_FILE}"' + } + } + } + stage('Domain Controller') { steps { withCredentials([file( @@ -33,6 +51,22 @@ pipeline { } } } + + stage('Remount R/O') { + steps { + withCredentials([file( + credentialsId: 'vault-jenkins@pyrocufflink.blue', + variable: 'SUDO_PASS_FILE')]) { + ansiblePlaybook \ + playbook: 'remount.yml', + limit: 'samba-dc', + become: true, + vaultCredentialsId: 'ansible-vault', + extras: '-e@"${SUDO_PASS_FILE}"' + } + } + } + } post {