Skip to content
Snippets Groups Projects
Commit ca4b3946 authored by nimrod's avatar nimrod
Browse files

Remove unneeded become and connection.

They're set correctly in the inventory (after
548e2002).
parent eac2af3b
No related branches found
No related tags found
No related merge requests found
Pipeline #755 passed
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
- name: Generate keys and certificates - name: Generate keys and certificates
hosts: hosts:
- localhost - localhost
connection: local
become: false
gather_facts: false gather_facts: false
vars: vars:
email: hostmaster@shore.co.il email: hostmaster@shore.co.il
...@@ -121,14 +119,12 @@ ...@@ -121,14 +119,12 @@
- name: Create ACME challenge directory - name: Create ACME challenge directory
delegate_to: ns4 delegate_to: ns4
become: true
file: file:
path: /var/www/www.shore.co.il/.well-known/acme-challenge path: /var/www/www.shore.co.il/.well-known/acme-challenge
state: directory state: directory
- name: Copy http-01 site challenge - name: Copy http-01 site challenge
delegate_to: ns4 delegate_to: ns4
become: true
with_dict: | with_dict: |
{{ acme_site_challenge['challenge_data'] }} {{ acme_site_challenge['challenge_data'] }}
copy: copy:
...@@ -159,7 +155,6 @@ ...@@ -159,7 +155,6 @@
- name: Copy site key, certificate to server - name: Copy site key, certificate to server
delegate_to: ns4 delegate_to: ns4
become: true
with_items: with_items:
- src: *site_key_src - src: *site_key_src
dest: /var/ssl/site.key dest: /var/ssl/site.key
...@@ -244,14 +239,12 @@ ...@@ -244,14 +239,12 @@
- name: Create ACME challenge directory - name: Create ACME challenge directory
delegate_to: host01 delegate_to: host01
become: true
file: file:
path: /var/www/www.shore.co.il/.well-known/acme-challenge path: /var/www/www.shore.co.il/.well-known/acme-challenge
state: directory state: directory
- name: Copy http-01 host challenge - name: Copy http-01 host challenge
delegate_to: host01 delegate_to: host01
become: true
with_dict: | with_dict: |
{{ acme_host_challenge['challenge_data'] }} {{ acme_host_challenge['challenge_data'] }}
copy: copy:
...@@ -282,7 +275,6 @@ ...@@ -282,7 +275,6 @@
- name: Copy host key, certificate to server - name: Copy host key, certificate to server
delegate_to: host01 delegate_to: host01
become: true
with_items: with_items:
- src: *host_key_src - src: *host_key_src
dest: /var/ssl/site.key dest: /var/ssl/site.key
...@@ -367,14 +359,12 @@ ...@@ -367,14 +359,12 @@
- name: Create ACME challenge directory - name: Create ACME challenge directory
delegate_to: host01 delegate_to: host01
become: true
file: file:
path: /var/www/mail.shore.co.il/.well-known/acme-challenge path: /var/www/mail.shore.co.il/.well-known/acme-challenge
state: directory state: directory
- name: Copy http-01 mail challenge - name: Copy http-01 mail challenge
delegate_to: host01 delegate_to: host01
become: true
with_dict: | with_dict: |
{{ acme_mail_challenge['challenge_data'] }} {{ acme_mail_challenge['challenge_data'] }}
copy: copy:
...@@ -405,7 +395,6 @@ ...@@ -405,7 +395,6 @@
- name: Copy mail key, certificate to server - name: Copy mail key, certificate to server
delegate_to: host01 delegate_to: host01
become: true
with_items: with_items:
- src: *mail_key_src - src: *mail_key_src
dest: /var/ssl/mail.key dest: /var/ssl/mail.key
...@@ -550,7 +539,6 @@ ...@@ -550,7 +539,6 @@
- kodi - kodi
- name: Generate Diffie-Hellman parameters on host01 - name: Generate Diffie-Hellman parameters on host01
become: true
delegate_to: host01 delegate_to: host01
community.crypto.openssl_dhparam: community.crypto.openssl_dhparam:
force: true force: true
...@@ -567,7 +555,6 @@ ...@@ -567,7 +555,6 @@
- dhparams - dhparams
- name: Generate Diffie-Hellman parameters on ns4 - name: Generate Diffie-Hellman parameters on ns4
become: true
delegate_to: ns4 delegate_to: ns4
community.crypto.openssl_dhparam: community.crypto.openssl_dhparam:
force: true force: true
...@@ -582,7 +569,6 @@ ...@@ -582,7 +569,6 @@
- dhparams - dhparams
- name: Generate Diffie-Hellman parameters on kodi - name: Generate Diffie-Hellman parameters on kodi
become: true
delegate_to: kodi delegate_to: kodi
community.crypto.openssl_dhparam: community.crypto.openssl_dhparam:
force: true force: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment