mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update httptester.yml to match Dockerfile (#34508)
This commit is contained in:
parent
f77ab30316
commit
a0ad7ffedf
1 changed files with 11 additions and 9 deletions
|
@ -72,7 +72,7 @@
|
||||||
|
|
||||||
- name: Generate ca key
|
- name: Generate ca key
|
||||||
command: >
|
command: >
|
||||||
openssl req -new -x509 -days 3650 -nodes -extensions v3_ca -keyout /root/ca/private/cakey.pem -out /root/ca/cacert.pem
|
openssl req -new -x509 -nodes -extensions v3_ca -keyout /root/ca/private/cakey.pem -out /root/ca/cacert.pem
|
||||||
-subj "/C=US/ST=North Carolina/L=Durham/O=Ansible/CN=ansible.http.tests"
|
-subj "/C=US/ST=North Carolina/L=Durham/O=Ansible/CN=ansible.http.tests"
|
||||||
|
|
||||||
- name: Generate ansible.http.tests key
|
- name: Generate ansible.http.tests key
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
|
|
||||||
- name: Generate ansible.http.tests cert
|
- name: Generate ansible.http.tests cert
|
||||||
shell: >
|
shell: >
|
||||||
yes | openssl ca -config /etc/ssl/openssl.cnf -out /root/ca/ansible.http.tests-cert.pem -infiles /root/ca/ansible.http.tests-req.pem
|
yes | openssl ca -config /etc/ssl/openssl.cnf -days 3650 -out /root/ca/ansible.http.tests-cert.pem -infiles /root/ca/ansible.http.tests-req.pem
|
||||||
|
|
||||||
- name: Generate sni1.ansible.http.tests key
|
- name: Generate sni1.ansible.http.tests key
|
||||||
command: >
|
command: >
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
|
|
||||||
- name: Generate sni1.ansible.http.tests cert
|
- name: Generate sni1.ansible.http.tests cert
|
||||||
shell: >
|
shell: >
|
||||||
yes | openssl ca -config /etc/ssl/openssl.cnf -out /root/ca/sni1.ansible.http.tests-cert.pem -infiles /root/ca/sni1.ansible.http.tests-req.pem
|
yes | openssl ca -config /etc/ssl/openssl.cnf -days 3650 -out /root/ca/sni1.ansible.http.tests-cert.pem -infiles /root/ca/sni1.ansible.http.tests-req.pem
|
||||||
|
|
||||||
- name: Generate sni2.ansible.http.tests key
|
- name: Generate sni2.ansible.http.tests key
|
||||||
command: >
|
command: >
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
|
|
||||||
- name: Generate sni2.ansible.http.tests cert
|
- name: Generate sni2.ansible.http.tests cert
|
||||||
shell: >
|
shell: >
|
||||||
yes | openssl ca -config /etc/ssl/openssl.cnf -out /root/ca/sni2.ansible.http.tests-cert.pem -infiles /root/ca/sni2.ansible.http.tests-req.pem
|
yes | openssl ca -config /etc/ssl/openssl.cnf -days 3650 -out /root/ca/sni2.ansible.http.tests-cert.pem -infiles /root/ca/sni2.ansible.http.tests-req.pem
|
||||||
|
|
||||||
- name: Generate client key
|
- name: Generate client key
|
||||||
command: >
|
command: >
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
- name: Generate client.ansible.http.tests cert
|
- name: Generate client.ansible.http.tests cert
|
||||||
shell: >
|
shell: >
|
||||||
yes | openssl ca -config /etc/ssl/openssl.cnf -out /root/ca/client.ansible.http.tests-cert.pem -infiles /root/ca/client.ansible.http.tests-req.pem
|
yes | openssl ca -config /etc/ssl/openssl.cnf -days 3650 -out /root/ca/client.ansible.http.tests-cert.pem -infiles /root/ca/client.ansible.http.tests-req.pem
|
||||||
|
|
||||||
- name: Copy cacert.pem into nginx doc root for easy retrieval
|
- name: Copy cacert.pem into nginx doc root for easy retrieval
|
||||||
copy:
|
copy:
|
||||||
|
@ -129,14 +129,16 @@
|
||||||
|
|
||||||
- name: Install gunicorn and httpbin
|
- name: Install gunicorn and httpbin
|
||||||
pip:
|
pip:
|
||||||
name: "{{ item }}"
|
name: "{{ item.name }}"
|
||||||
|
version: "{{ item.version|default(omit) }}"
|
||||||
with_items:
|
with_items:
|
||||||
- gunicorn
|
- name: gunicorn
|
||||||
- httpbin
|
- name: httpbin
|
||||||
|
version: '0.5.0'
|
||||||
|
|
||||||
- name: Copy services.sh script
|
- name: Copy services.sh script
|
||||||
copy:
|
copy:
|
||||||
src: services.sh
|
src: "{{ playbook_dir }}/services.sh"
|
||||||
dest: /services.sh
|
dest: /services.sh
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue