diff --git a/Jenkinsfile b/Jenkinsfile index 32b7848..796a2c3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,8 +5,8 @@ pipeline { steps { ansiblePlaybook( playbook: 'main.yaml', - inventory: 'inventory.yaml', - credentialsId: 'onedrop-vetinari' + inventory: 'hosts.ini', + credentialsId: 'igor' ) } } diff --git a/hosts.ini b/hosts.ini new file mode 100644 index 0000000..86028d2 --- /dev/null +++ b/hosts.ini @@ -0,0 +1,2 @@ +[web] +vimes.dreamfall.space diff --git a/inventory.yaml b/inventory.yaml deleted file mode 100644 index ca8d905..0000000 --- a/inventory.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -nodes: - hosts: - vetinari: - ansible_host: vetinari.dreamfall.space diff --git a/main.yaml b/main.yaml index 10ca48e..12fb876 100644 --- a/main.yaml +++ b/main.yaml @@ -1,6 +1,6 @@ --- - name: deploy mcmillian.dev static site - hosts: vetinari + hosts: web vars: html_location: /var/www/html/mcmillian.us