Adjust YAML files (#10233)

Adjust YAML files.
This commit is contained in:
Felix Fontein 2025-06-15 09:13:16 +02:00 committed by GitHub
commit eaa5e07b28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
247 changed files with 7318 additions and 7375 deletions

View file

@ -17,95 +17,95 @@
nomad_cmd: '{{ remote_tmp_dir }}/nomad'
block:
- name: Install requests<2.20 (CentOS/RHEL 6)
pip:
name: requests<2.20
extra_args: "-c {{ remote_constraints }}"
register: result
until: result is success
when: ansible_distribution_file_variety|default() == 'RedHat' and ansible_distribution_major_version is version('6', '<=')
- name: Install requests<2.20 (CentOS/RHEL 6)
pip:
name: requests<2.20
extra_args: "-c {{ remote_constraints }}"
register: result
until: result is success
when: ansible_distribution_file_variety|default() == 'RedHat' and ansible_distribution_major_version is version('6', '<=')
- name: Install python-nomad
pip:
name: python-nomad
extra_args: "-c {{ remote_constraints }}"
register: result
until: result is success
- name: Install python-nomad
pip:
name: python-nomad
extra_args: "-c {{ remote_constraints }}"
register: result
until: result is success
- name: Install jmespath
pip:
name: jmespath
extra_args: "-c {{ remote_constraints }}"
register: result
until: result is success
- name: Install jmespath
pip:
name: jmespath
extra_args: "-c {{ remote_constraints }}"
register: result
until: result is success
- name: Generate privatekey
community.crypto.openssl_privatekey:
path: '{{ remote_tmp_dir }}/privatekey.pem'
- name: Generate privatekey
community.crypto.openssl_privatekey:
path: '{{ remote_tmp_dir }}/privatekey.pem'
- name: Generate CSR
community.crypto.openssl_csr:
path: '{{ remote_tmp_dir }}/csr.csr'
privatekey_path: '{{ remote_tmp_dir }}/privatekey.pem'
subject:
commonName: localhost
- name: Generate CSR
community.crypto.openssl_csr:
path: '{{ remote_tmp_dir }}/csr.csr'
privatekey_path: '{{ remote_tmp_dir }}/privatekey.pem'
subject:
commonName: localhost
- name: Generate selfsigned certificate
register: selfsigned_certificate
community.crypto.x509_certificate:
path: '{{ remote_tmp_dir }}/cert.pem'
csr_path: '{{ remote_tmp_dir }}/csr.csr'
privatekey_path: '{{ remote_tmp_dir }}/privatekey.pem'
provider: selfsigned
selfsigned_digest: sha256
- name: Generate selfsigned certificate
register: selfsigned_certificate
community.crypto.x509_certificate:
path: '{{ remote_tmp_dir }}/cert.pem'
csr_path: '{{ remote_tmp_dir }}/csr.csr'
privatekey_path: '{{ remote_tmp_dir }}/privatekey.pem'
provider: selfsigned
selfsigned_digest: sha256
- name: Install unzip
package:
name: unzip
register: result
until: result is success
when: ansible_distribution != "MacOSX"
- name: Install unzip
package:
name: unzip
register: result
until: result is success
when: ansible_distribution != "MacOSX"
- assert:
that: ansible_architecture in ['i386', 'x86_64', 'amd64']
- assert:
that: ansible_architecture in ['i386', 'x86_64', 'amd64']
- set_fact:
nomad_arch: '386'
when: ansible_architecture == 'i386'
- set_fact:
nomad_arch: '386'
when: ansible_architecture == 'i386'
- set_fact:
nomad_arch: amd64
when: ansible_architecture in ['x86_64', 'amd64']
- set_fact:
nomad_arch: amd64
when: ansible_architecture in ['x86_64', 'amd64']
- name: Download nomad binary
unarchive:
src: '{{ nomad_uri }}'
dest: '{{ remote_tmp_dir }}'
remote_src: true
register: result
until: result is success
- name: Download nomad binary
unarchive:
src: '{{ nomad_uri }}'
dest: '{{ remote_tmp_dir }}'
remote_src: true
register: result
until: result is success
- vars:
remote_dir: '{{ echo_remote_tmp_dir.stdout }}'
block:
- command: echo {{ remote_tmp_dir }}
register: echo_remote_tmp_dir
- name: Run tests integration
- vars:
remote_dir: '{{ echo_remote_tmp_dir.stdout }}'
block:
- name: Start nomad (dev mode enabled)
shell: nohup {{ nomad_cmd }} agent -dev </dev/null >/dev/null 2>&1 &
- name: wait nomad up
wait_for:
host: localhost
port: 4646
delay: 10
timeout: 60
- command: echo {{ remote_tmp_dir }}
register: echo_remote_tmp_dir
- import_tasks: nomad_job.yml
always:
- name: Run tests integration
block:
- name: Start nomad (dev mode enabled)
shell: nohup {{ nomad_cmd }} agent -dev </dev/null >/dev/null 2>&1 &
- name: kill nomad
shell: pkill nomad
- name: wait nomad up
wait_for:
host: localhost
port: 4646
delay: 10
timeout: 60
- import_tasks: nomad_job.yml
always:
- name: kill nomad
shell: pkill nomad