diff options
author | pmikus <pmikus@cisco.com> | 2021-08-18 12:04:27 +0000 |
---|---|---|
committer | pmikus <pmikus@cisco.com> | 2021-08-18 12:04:27 +0000 |
commit | d41a5490f30a161561c39c4f1b08add17b9cf6f7 (patch) | |
tree | 4244f8492f66f5ba1afe1c85c3a55340b125c8f7 /fdio.infra.ansible/roles | |
parent | a24c98b45ca1e9d56039d7649f65ac31e006d949 (diff) |
Infra: Ansible yaml lint cleanup
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: If00b376bd78b7b603d7887c1e149e7dccdb6d217
Diffstat (limited to 'fdio.infra.ansible/roles')
64 files changed, 266 insertions, 267 deletions
diff --git a/fdio.infra.ansible/roles/ab/tasks/main.yaml b/fdio.infra.ansible/roles/ab/tasks/main.yaml index 37e702e6df..c69ed25a75 100644 --- a/fdio.infra.ansible/roles/ab/tasks/main.yaml +++ b/fdio.infra.ansible/roles/ab/tasks/main.yaml @@ -3,7 +3,7 @@ - name: Inst - Update Package Cache (APT) apt: - update_cache: yes + update_cache: true cache_valid_time: 3600 when: - ansible_distribution|lower == 'ubuntu' @@ -15,4 +15,4 @@ name: "{{ packages | flatten(levels=1) }}" state: present tags: - - ab-inst
\ No newline at end of file + - ab-inst diff --git a/fdio.infra.ansible/roles/aws/tasks/ubuntu_bionic.yaml b/fdio.infra.ansible/roles/aws/tasks/ubuntu_bionic.yaml index bca1cf5095..4108a98720 100644 --- a/fdio.infra.ansible/roles/aws/tasks/ubuntu_bionic.yaml +++ b/fdio.infra.ansible/roles/aws/tasks/ubuntu_bionic.yaml @@ -5,6 +5,6 @@ apt_repository: repo: "deb-src http://archive.ubuntu.com/ubuntu bionic main" state: "present" - update_cache: yes + update_cache: true tags: - aws-enable-src-repo diff --git a/fdio.infra.ansible/roles/aws/tasks/ubuntu_focal.yaml b/fdio.infra.ansible/roles/aws/tasks/ubuntu_focal.yaml index a8cc56c0c4..60302f2309 100644 --- a/fdio.infra.ansible/roles/aws/tasks/ubuntu_focal.yaml +++ b/fdio.infra.ansible/roles/aws/tasks/ubuntu_focal.yaml @@ -5,6 +5,6 @@ apt_repository: repo: "deb-src http://archive.ubuntu.com/ubuntu focal main" state: "present" - update_cache: yes + update_cache: true tags: - aws-enable-src-repo diff --git a/fdio.infra.ansible/roles/azure/defaults/main.yaml b/fdio.infra.ansible/roles/azure/defaults/main.yaml index 8c48c307bc..68f6148413 100644 --- a/fdio.infra.ansible/roles/azure/defaults/main.yaml +++ b/fdio.infra.ansible/roles/azure/defaults/main.yaml @@ -1,3 +1,2 @@ --- # file: roles/azure/defaults/main.yaml - diff --git a/fdio.infra.ansible/roles/baremetal/handlers/cimc.yaml b/fdio.infra.ansible/roles/baremetal/handlers/cimc.yaml index 0048d19032..3d244d8d19 100644 --- a/fdio.infra.ansible/roles/baremetal/handlers/cimc.yaml +++ b/fdio.infra.ansible/roles/baremetal/handlers/cimc.yaml @@ -6,7 +6,7 @@ hostname: "{{ inventory_cimc_hostname }}" username: "{{ inventory_cimc_username }}" password: "{{ inventory_cimc_password }}" - validate_certs: no + validate_certs: false content: | <!-- Configure PXE boot --> <configConfMo><inConfig> @@ -21,7 +21,7 @@ hostname: "{{ inventory_cimc_hostname }}" username: "{{ inventory_cimc_username }}" password: "{{ inventory_cimc_password }}" - validate_certs: no + validate_certs: false content: | <configConfMo><inConfig> <lsbootStorage dn="sys/rack-unit-1/boot-policy/storage-read-write" access="read-write" order="1" type="storage"/> @@ -35,7 +35,7 @@ hostname: "{{ inventory_cimc_hostname }}" username: "{{ inventory_cimc_username }}" password: "{{ inventory_cimc_password }}" - validate_certs: no + validate_certs: false content: | <configConfMo><inConfig> <computeRackUnit dn="sys/rack-unit-1" adminPower="up"/> @@ -49,7 +49,7 @@ hostname: "{{ inventory_cimc_hostname }}" username: "{{ inventory_cimc_username }}" password: "{{ inventory_cimc_password }}" - validate_certs: no + validate_certs: false content: | <configConfMo><inConfig> <computeRackUnit dn="sys/rack-unit-1" adminPower="down"/> @@ -63,7 +63,7 @@ hostname: "{{ inventory_cimc_hostname }}" username: "{{ inventory_cimc_username }}" password: "{{ inventory_cimc_password }}" - validate_certs: no + validate_certs: false content: | <!-- Power cycle server --> <configConfMo><inConfig> diff --git a/fdio.infra.ansible/roles/baremetal/handlers/ipmi.yaml b/fdio.infra.ansible/roles/baremetal/handlers/ipmi.yaml index 239b8973f7..b3cc3d0a82 100644 --- a/fdio.infra.ansible/roles/baremetal/handlers/ipmi.yaml +++ b/fdio.infra.ansible/roles/baremetal/handlers/ipmi.yaml @@ -26,7 +26,7 @@ name: "{{ inventory_ipmi_hostname }}" user: "{{ inventory_ipmi_username }}" password: "{{ inventory_ipmi_password }}" - state: on + state: true delegate_to: localhost tags: - power-up @@ -36,7 +36,7 @@ name: "{{ inventory_ipmi_hostname }}" user: "{{ inventory_ipmi_username }}" password: "{{ inventory_ipmi_password }}" - state: off + state: false delegate_to: localhost tags: - power-down diff --git a/fdio.infra.ansible/roles/cadvisor/defaults/main.yaml b/fdio.infra.ansible/roles/cadvisor/defaults/main.yaml index 3b25e551ea..5dba8c9112 100644 --- a/fdio.infra.ansible/roles/cadvisor/defaults/main.yaml +++ b/fdio.infra.ansible/roles/cadvisor/defaults/main.yaml @@ -21,4 +21,4 @@ image: "{{ image_by_arch[ansible_machine] }}" image_by_arch: aarch64: "zcube/cadvisor:v0.37.0" - x86_64: "gcr.io/cadvisor/cadvisor:v0.38.7"
\ No newline at end of file + x86_64: "gcr.io/cadvisor/cadvisor:v0.38.7" diff --git a/fdio.infra.ansible/roles/cadvisor/tasks/main.yaml b/fdio.infra.ansible/roles/cadvisor/tasks/main.yaml index a2a13368c2..a8c3f70124 100644 --- a/fdio.infra.ansible/roles/cadvisor/tasks/main.yaml +++ b/fdio.infra.ansible/roles/cadvisor/tasks/main.yaml @@ -3,7 +3,7 @@ - name: Inst - Update Package Cache (APT) apt: - update_cache: yes + update_cache: true cache_valid_time: 3600 when: - ansible_distribution|lower == 'ubuntu' @@ -23,12 +23,12 @@ image: "{{ image }}" state: "started" restart_policy: "unless-stopped" - detach: yes + detach: true devices: - - "/dev/kmsg" + - "/dev/kmsg" ports: - - "8080:8080" - privileged: yes + - "8080:8080" + privileged: true volumes: - "/:/rootfs:ro" - "/var/run:/var/run:ro" diff --git a/fdio.infra.ansible/roles/calibration/tasks/main.yaml b/fdio.infra.ansible/roles/calibration/tasks/main.yaml index 5f4470adfc..9166d58f10 100644 --- a/fdio.infra.ansible/roles/calibration/tasks/main.yaml +++ b/fdio.infra.ansible/roles/calibration/tasks/main.yaml @@ -3,7 +3,7 @@ - name: Inst - Update Package Cache (APT) apt: - update_cache: yes + update_cache: true cache_valid_time: 3600 when: - ansible_distribution|lower == 'ubuntu' diff --git a/fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml b/fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml index 90b1c954b5..cb98c00c51 100644 --- a/fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml +++ b/fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml @@ -15,10 +15,10 @@ - name: Calibration - Run Jitter Tool shell: "{{ pma_directory }}/jitter/jitter -c {{ jitter_core }} -i {{ jitter_iterations }} -f" - become: yes + become: true async: 60 poll: 0 - ignore_errors: yes + ignore_errors: true register: jitter_async tags: - check-jitter-tool diff --git a/fdio.infra.ansible/roles/cleanup/tasks/clean_images.yaml b/fdio.infra.ansible/roles/cleanup/tasks/clean_images.yaml index e030acbff2..7558ee0fd7 100644 --- a/fdio.infra.ansible/roles/cleanup/tasks/clean_images.yaml +++ b/fdio.infra.ansible/roles/cleanup/tasks/clean_images.yaml @@ -24,13 +24,13 @@ tags: - remove-docker-images-dangling - # TODO: Disabled until all images will be in registry - #- name: Clean Images - Prune Docker Images - # cron: - # name: "Prune docker images" - # minute: "10" - # hour: "6" - # weekday: 7 - # job: "/usr/bin/docker image prune --all --force" - # tags: - # - prune-docker-images
\ No newline at end of file +# TODO: Disabled until all images will be in registry +# - name: Clean Images - Prune Docker Images +# cron: +# name: "Prune docker images" +# minute: "10" +# hour: "6" +# weekday: 7 +# job: "/usr/bin/docker image prune --all --force" +# tags: +# - prune-docker-images diff --git a/fdio.infra.ansible/roles/cleanup/tasks/kill_containers.yaml b/fdio.infra.ansible/roles/cleanup/tasks/kill_containers.yaml index 25fd48e420..750572feb9 100644 --- a/fdio.infra.ansible/roles/cleanup/tasks/kill_containers.yaml +++ b/fdio.infra.ansible/roles/cleanup/tasks/kill_containers.yaml @@ -3,40 +3,40 @@ - name: Kill Docker Containers block: - - name: Kill Container - Get Running Docker Containers - shell: "docker ps -aq" - register: running_containers - changed_when: no - tags: - - kill-containers + - name: Kill Container - Get Running Docker Containers + shell: "docker ps -aq" + register: running_containers + changed_when: false + tags: + - kill-containers - - name: Kill Container - Remove All Docker Containers - shell: "docker rm --force {{ item }}" - with_items: "{{ running_containers.stdout_lines }}" - tags: - - kill-containers + - name: Kill Container - Remove All Docker Containers + shell: "docker rm --force {{ item }}" + with_items: "{{ running_containers.stdout_lines }}" + tags: + - kill-containers rescue: - - name: Restart Docker Daemon - systemd: - name: "docker" - state: "restarted" + - name: Restart Docker Daemon + systemd: + name: "docker" + state: "restarted" - name: Kill LXC Containers block: - - name: Kill Container - Get Running LXC Containers - shell: "lxc-ls" - register: running_containers - changed_when: no - tags: - - kill-containers + - name: Kill Container - Get Running LXC Containers + shell: "lxc-ls" + register: running_containers + changed_when: false + tags: + - kill-containers - - name: Kill Container - Remove All LXC Containers - shell: "lxc-destroy --force -n {{ item }}" - with_items: "{{ running_containers.stdout_lines }}" - tags: - - kill-containers + - name: Kill Container - Remove All LXC Containers + shell: "lxc-destroy --force -n {{ item }}" + with_items: "{{ running_containers.stdout_lines }}" + tags: + - kill-containers rescue: - - fail: - msg: "Kill LXC containers failed!"
\ No newline at end of file + - fail: + msg: "Kill LXC containers failed!" diff --git a/fdio.infra.ansible/roles/cleanup/tasks/kill_process.yaml b/fdio.infra.ansible/roles/cleanup/tasks/kill_process.yaml index c7cee37485..d6c6ed5118 100644 --- a/fdio.infra.ansible/roles/cleanup/tasks/kill_process.yaml +++ b/fdio.infra.ansible/roles/cleanup/tasks/kill_process.yaml @@ -3,35 +3,35 @@ - name: Kill Process - {{ process }} block: - - name: Get PID Of {{ process }} - shell: "ps -ef | grep -v grep | grep -w {{ process }} | awk '{print $2}'" - when: - - process is defined and process != "" - register: running_processes - tags: - - kill-process + - name: Get PID Of {{ process }} + shell: "ps -ef | grep -v grep | grep -w {{ process }} | awk '{print $2}'" + when: + - process is defined and process != "" + register: running_processes + tags: + - kill-process - - name: Safe Kill {{ process }} - shell: "kill {{ item }}" - with_items: "{{ running_processes.stdout_lines }}" - tags: - - kill-process + - name: Safe Kill {{ process }} + shell: "kill {{ item }}" + with_items: "{{ running_processes.stdout_lines }}" + tags: + - kill-process - - wait_for: - path: "/proc/{{ item }}/status" - state: "absent" - with_items: "{{ running_processes.stdout_lines }}" - ignore_errors: yes - register: killed_processes - tags: - - kill-process + - wait_for: + path: "/proc/{{ item }}/status" + state: "absent" + with_items: "{{ running_processes.stdout_lines }}" + ignore_errors: true + register: killed_processes + tags: + - kill-process - - name: Kill Process - Force Kill {{ process }} - shell: "kill -9 {{ item }}" - with_items: "{{ killed_processes.results | select('failed') | map(attribute='item') | list }}" - tags: - - kill-process + - name: Kill Process - Force Kill {{ process }} + shell: "kill -9 {{ item }}" + with_items: "{{ killed_processes.results | select('failed') | map(attribute='item') | list }}" + tags: + - kill-process rescue: - - fail: - msg: "Kill process {{ process }} failed!" + - fail: + msg: "Kill process {{ process }} failed!" diff --git a/fdio.infra.ansible/roles/cleanup/tasks/nomad.yaml b/fdio.infra.ansible/roles/cleanup/tasks/nomad.yaml index 3c5bf6462d..3d8f322840 100644 --- a/fdio.infra.ansible/roles/cleanup/tasks/nomad.yaml +++ b/fdio.infra.ansible/roles/cleanup/tasks/nomad.yaml @@ -19,4 +19,4 @@ - "fdiotools/builder-centos8:prod-x86_64" - "fdiotools/builder-centos7:prod-x86_64" tags: - - clean-images
\ No newline at end of file + - clean-images diff --git a/fdio.infra.ansible/roles/cleanup/tasks/remove_package.yaml b/fdio.infra.ansible/roles/cleanup/tasks/remove_package.yaml index 302b43c99a..484868e595 100644 --- a/fdio.infra.ansible/roles/cleanup/tasks/remove_package.yaml +++ b/fdio.infra.ansible/roles/cleanup/tasks/remove_package.yaml @@ -11,10 +11,10 @@ - name: Remove Package - {{ package }} apt: name: "{{ package }}" - force: yes - purge: yes + force: true + purge: true state: "absent" - failed_when: no + failed_when: false when: - ansible_distribution == 'Ubuntu' tags: diff --git a/fdio.infra.ansible/roles/cleanup/tasks/vpp_device.yaml b/fdio.infra.ansible/roles/cleanup/tasks/vpp_device.yaml index 41c4b29d37..23d001fe6f 100644 --- a/fdio.infra.ansible/roles/cleanup/tasks/vpp_device.yaml +++ b/fdio.infra.ansible/roles/cleanup/tasks/vpp_device.yaml @@ -3,30 +3,30 @@ - name: Host Cleanup block: - - name: Reset vpp_device Binary - copy: - src: "files/reset_vppdevice.sh" - dest: "/usr/local/bin" - owner: "root" - group: "root" - mode: "744" - tags: - - reset-sriov + - name: Reset vpp_device Binary + copy: + src: "files/reset_vppdevice.sh" + dest: "/usr/local/bin" + owner: "root" + group: "root" + mode: "744" + tags: + - reset-sriov - - name: Clean Images - import_tasks: clean_images.yaml - vars: - images_to_prefetch_by_arch: - aarch64: - - "fdiotools/builder-ubuntu2004:prod-aarch64" - - "fdiotools/builder-ubuntu1804:prod-aarch64" - - "fdiotools/builder-centos8:prod-aarch64" - x86_64: - - "fdiotools/builder-ubuntu2004:prod-x86_64" - - "fdiotools/builder-ubuntu1804:prod-x86_64" - - "fdiotools/builder-debian10:prod-x86_64" - - "fdiotools/builder-debian9:prod-x86_64" - - "fdiotools/builder-centos8:prod-x86_64" - - "fdiotools/builder-centos7:prod-x86_64" - tags: - - clean-images
\ No newline at end of file + - name: Clean Images + import_tasks: clean_images.yaml + vars: + images_to_prefetch_by_arch: + aarch64: + - "fdiotools/builder-ubuntu2004:prod-aarch64" + - "fdiotools/builder-ubuntu1804:prod-aarch64" + - "fdiotools/builder-centos8:prod-aarch64" + x86_64: + - "fdiotools/builder-ubuntu2004:prod-x86_64" + - "fdiotools/builder-ubuntu1804:prod-x86_64" + - "fdiotools/builder-debian10:prod-x86_64" + - "fdiotools/builder-debian9:prod-x86_64" + - "fdiotools/builder-centos8:prod-x86_64" + - "fdiotools/builder-centos7:prod-x86_64" + tags: + - clean-images diff --git a/fdio.infra.ansible/roles/common/defaults/main.yaml b/fdio.infra.ansible/roles/common/defaults/main.yaml index 43e40ebdf6..06cfbd80cc 100644 --- a/fdio.infra.ansible/roles/common/defaults/main.yaml +++ b/fdio.infra.ansible/roles/common/defaults/main.yaml @@ -61,12 +61,12 @@ packages_by_arch: # Proxy settings: Uncomment and fill the proper values. These variables will be # set globally by writing into /etc/environment file on target machine. -#proxy_env: -# http_proxy: http://proxy.com:80 -# HTTP_PROXY: http://proxy.com:80 -# https_proxy: http://proxy.com:80 -# HTTPS_PROXY: http://proxy.com:80 -# ftp_proxy: http://proxy.com:80 -# FTP_PROXY: http://proxy.com:80 -# no_proxy: localhost,127.0.0.1,{{ ansible_default_ipv4.address }} -# NO_PROXY: localhost,127.0.0.1,{{ ansible_default_ipv4.address }}
\ No newline at end of file +# proxy_env: +# http_proxy: http://proxy.com:80 +# HTTP_PROXY: http://proxy.com:80 +# https_proxy: http://proxy.com:80 +# HTTPS_PROXY: http://proxy.com:80 +# ftp_proxy: http://proxy.com:80 +# FTP_PROXY: http://proxy.com:80 +# no_proxy: localhost,127.0.0.1,{{ ansible_default_ipv4.address }} +# NO_PROXY: localhost,127.0.0.1,{{ ansible_default_ipv4.address }} diff --git a/fdio.infra.ansible/roles/common/tasks/main.yaml b/fdio.infra.ansible/roles/common/tasks/main.yaml index 1233690e83..7418709c99 100644 --- a/fdio.infra.ansible/roles/common/tasks/main.yaml +++ b/fdio.infra.ansible/roles/common/tasks/main.yaml @@ -13,7 +13,7 @@ - name: Inst - Update package cache (apt) apt: - update_cache: yes + update_cache: true cache_valid_time: 3600 when: - ansible_distribution|lower == 'ubuntu' diff --git a/fdio.infra.ansible/roles/consul/meta/main.yaml b/fdio.infra.ansible/roles/consul/meta/main.yaml index 5fb7e185c0..c848f67c7b 100644 --- a/fdio.infra.ansible/roles/consul/meta/main.yaml +++ b/fdio.infra.ansible/roles/consul/meta/main.yaml @@ -6,7 +6,7 @@ # conf: ? # info: 1.0 - added role -dependencies: [ ] +dependencies: [] galaxy_info: role_name: consul author: fd.io diff --git a/fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml b/fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml index 2affe4b18e..9dddbe435b 100644 --- a/fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml +++ b/fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml @@ -27,4 +27,4 @@ args: chdir: "/opt/csit-sut" tags: - - csit-sut-image
\ No newline at end of file + - csit-sut-image diff --git a/fdio.infra.ansible/roles/docker/defaults/main.yaml b/fdio.infra.ansible/roles/docker/defaults/main.yaml index df9d2c92b6..a8f4e6289d 100644 --- a/fdio.infra.ansible/roles/docker/defaults/main.yaml +++ b/fdio.infra.ansible/roles/docker/defaults/main.yaml @@ -35,4 +35,4 @@ docker_daemon_environment_http: - "NO_PROXY={{ proxy_env.no_proxy }}" docker_daemon_environment_https: - "HTTPS_PROXY={{ proxy_env.https_proxy }}" - - "NO_PROXY={{ proxy_env.no_proxy }}"
\ No newline at end of file + - "NO_PROXY={{ proxy_env.no_proxy }}" diff --git a/fdio.infra.ansible/roles/docker/handlers/main.yaml b/fdio.infra.ansible/roles/docker/handlers/main.yaml index d89adb9a1a..572b789d48 100644 --- a/fdio.infra.ansible/roles/docker/handlers/main.yaml +++ b/fdio.infra.ansible/roles/docker/handlers/main.yaml @@ -6,4 +6,4 @@ name: "docker" state: "{{ docker_restart_handler_state }}" tags: - - docker-restart-service
\ No newline at end of file + - docker-restart-service diff --git a/fdio.infra.ansible/roles/docker/meta/main.yaml b/fdio.infra.ansible/roles/docker/meta/main.yaml index ab3d197791..e191fd43b6 100644 --- a/fdio.infra.ansible/roles/docker/meta/main.yaml +++ b/fdio.infra.ansible/roles/docker/meta/main.yaml @@ -1,4 +1,4 @@ --- # file: roles/docker/meta/main.yaml -dependencies: []
\ No newline at end of file +dependencies: [] diff --git a/fdio.infra.ansible/roles/docker/tasks/main.yaml b/fdio.infra.ansible/roles/docker/tasks/main.yaml index d40e1a44c1..27b9d250da 100644 --- a/fdio.infra.ansible/roles/docker/tasks/main.yaml +++ b/fdio.infra.ansible/roles/docker/tasks/main.yaml @@ -77,7 +77,7 @@ user: name: "{{ ansible_user }}" groups: "docker" - append: True + append: true tags: - docker-conf-user diff --git a/fdio.infra.ansible/roles/docker/tasks/ubuntu_bionic.yaml b/fdio.infra.ansible/roles/docker/tasks/ubuntu_bionic.yaml index 8bda4fed21..21f28e0c55 100644 --- a/fdio.infra.ansible/roles/docker/tasks/ubuntu_bionic.yaml +++ b/fdio.infra.ansible/roles/docker/tasks/ubuntu_bionic.yaml @@ -10,7 +10,7 @@ - "software-properties-common" state: "present" cache_valid_time: 3600 - install_recommends: False + install_recommends: false tags: - docker-inst-dependencies @@ -25,6 +25,6 @@ apt_repository: repo: "{{ docker_apt_repository }}" state: "{{ docker_apt_repository_state }}" - update_cache: yes + update_cache: true tags: - docker-conf-apt diff --git a/fdio.infra.ansible/roles/docker/tasks/ubuntu_focal.yaml b/fdio.infra.ansible/roles/docker/tasks/ubuntu_focal.yaml index 84bd1c5824..236cec6322 100644 --- a/fdio.infra.ansible/roles/docker/tasks/ubuntu_focal.yaml +++ b/fdio.infra.ansible/roles/docker/tasks/ubuntu_focal.yaml @@ -10,7 +10,7 @@ - "software-properties-common" state: "present" cache_valid_time: 3600 - install_recommends: False + install_recommends: false tags: - docker-inst-dependencies @@ -25,6 +25,6 @@ apt_repository: repo: "{{ docker_apt_repository }}" state: "{{ docker_apt_repository_state }}" - update_cache: yes + update_cache: true tags: - docker-conf-apt diff --git a/fdio.infra.ansible/roles/dpdk/meta/main.yaml b/fdio.infra.ansible/roles/dpdk/meta/main.yaml index 8acf6ef9b5..cc3bf5f731 100644 --- a/fdio.infra.ansible/roles/dpdk/meta/main.yaml +++ b/fdio.infra.ansible/roles/dpdk/meta/main.yaml @@ -6,7 +6,7 @@ # conf: ? # info: 1.0 - added role -dependencies: [ ] +dependencies: [] galaxy_info: role_name: dpdk diff --git a/fdio.infra.ansible/roles/intel/defaults/main.yaml b/fdio.infra.ansible/roles/intel/defaults/main.yaml index 1ea3966f4a..0ad227d13b 100644 --- a/fdio.infra.ansible/roles/intel/defaults/main.yaml +++ b/fdio.infra.ansible/roles/intel/defaults/main.yaml @@ -32,4 +32,4 @@ intel_ice_driver_dir: "/opt" intel_ddp_version: "1.3.28.0" intel_ddp_profile_url: "{{ intel_download_url }}/29889/eng/800%20Series%20Comms%20Binary%20Package%20{{ intel_ddp_version }}.zip" -intel_ddp_profile_dir: "/opt"
\ No newline at end of file +intel_ddp_profile_dir: "/opt" diff --git a/fdio.infra.ansible/roles/intel/tasks/i40e.yaml b/fdio.infra.ansible/roles/intel/tasks/i40e.yaml index fe8ae7c5ea..1831dd1dad 100644 --- a/fdio.infra.ansible/roles/intel/tasks/i40e.yaml +++ b/fdio.infra.ansible/roles/intel/tasks/i40e.yaml @@ -27,7 +27,7 @@ - "make install" - "modprobe -r i40e" - "modprobe i40e" - failed_when: no + failed_when: true when: - intel_driver_extracted tags: diff --git a/fdio.infra.ansible/roles/intel/tasks/iavf.yaml b/fdio.infra.ansible/roles/intel/tasks/iavf.yaml index 9ec6781d59..dfdb496085 100644 --- a/fdio.infra.ansible/roles/intel/tasks/iavf.yaml +++ b/fdio.infra.ansible/roles/intel/tasks/iavf.yaml @@ -27,7 +27,7 @@ - "make install" - "modprobe -r iavf" - "modprobe iavf" - failed_when: no + failed_when: true when: - intel_driver_extracted tags: diff --git a/fdio.infra.ansible/roles/intel/tasks/ice.yaml b/fdio.infra.ansible/roles/intel/tasks/ice.yaml index 0a2fe8a858..9baa9d050d 100644 --- a/fdio.infra.ansible/roles/intel/tasks/ice.yaml +++ b/fdio.infra.ansible/roles/intel/tasks/ice.yaml @@ -27,7 +27,7 @@ - "make install" - "modprobe -r ice" - "modprobe ice" - failed_when: no + failed_when: false when: - intel_driver_extracted tags: @@ -64,8 +64,8 @@ copy: src: "{{ intel_ddp_profile_dir }}/ice_comms-{{ intel_ddp_version }}.pkg" dest: "/lib/firmware/updates/intel/ice/ddp/ice-{{ intel_ddp_version }}.pkg" - remote_src: yes - follow: yes + remote_src: true + follow: true tags: - intel-inst diff --git a/fdio.infra.ansible/roles/intel/tasks/main.yaml b/fdio.infra.ansible/roles/intel/tasks/main.yaml index 4f6289113d..0d361a951d 100644 --- a/fdio.infra.ansible/roles/intel/tasks/main.yaml +++ b/fdio.infra.ansible/roles/intel/tasks/main.yaml @@ -3,7 +3,7 @@ - name: Inst - Update Package Cache (APT) apt: - update_cache: yes + update_cache: true cache_valid_time: 3600 when: - ansible_distribution|lower == 'ubuntu' @@ -20,16 +20,16 @@ - name: Inst - Check Presence of Intel Ethernet 810 Series shell: "lspci -d 8086:1592" register: intel_e810_pcis - failed_when: no - changed_when: no + failed_when: false + changed_when: false tags: - intel-inst-drivers - name: Inst - Check Presence of Intel Ethernet 700 Series shell: "lspci -d 8086:1583; lspci -d 8086:1585; lspci -d 8086:1572" register: intel_700_pcis - failed_when: no - changed_when: no + failed_when: false + changed_when: false tags: - intel-inst-drivers @@ -40,16 +40,16 @@ tags: - intel-inst-drivers -#- name: Inst - Driver Intel Ethernet 700 Series -# import_tasks: i40e.yaml -# when: -# - intel_700_pcis.stdout_lines | length > 0 -# tags: -# - intel-inst-drivers +# - name: Inst - Driver Intel Ethernet 700 Series +# import_tasks: i40e.yaml +# when: +# - intel_700_pcis.stdout_lines | length > 0 +# tags: +# - intel-inst-drivers -#- name: Inst - VF Driver Intel -# import_tasks: iavf.yaml -# when: -# - intel_700_pcis.stdout_lines | length > 0 or intel_e810_pcis.stdout_lines | length > 0 -# tags: -# - intel-inst-drivers +# - name: Inst - VF Driver Intel +# import_tasks: iavf.yaml +# when: +# - intel_700_pcis.stdout_lines | length > 0 or intel_e810_pcis.stdout_lines | length > 0 +# tags: +# - intel-inst-drivers diff --git a/fdio.infra.ansible/roles/iperf/tasks/main.yaml b/fdio.infra.ansible/roles/iperf/tasks/main.yaml index f8948cae57..a2b7709cef 100644 --- a/fdio.infra.ansible/roles/iperf/tasks/main.yaml +++ b/fdio.infra.ansible/roles/iperf/tasks/main.yaml @@ -3,7 +3,7 @@ - name: Inst - Update Package Cache (APT) apt: - update_cache: yes + update_cache: true cache_valid_time: 3600 when: - ansible_distribution|lower == 'ubuntu' @@ -40,7 +40,7 @@ - name: Compile Release I command: "./configure" args: - chdir: "{{ iperf_target_dir }}/iperf-{{ item }}/" + chdir: "{{ iperf_target_dir }}/iperf-{{ item }}/" loop: "{{ iperf_version }}" tags: - iperf-inst @@ -48,7 +48,7 @@ - name: Compile Release II command: "make" args: - chdir: "{{ iperf_target_dir }}/iperf-{{ item }}/" + chdir: "{{ iperf_target_dir }}/iperf-{{ item }}/" loop: "{{ iperf_version }}" tags: - iperf-inst @@ -56,7 +56,7 @@ - name: Compile Release III command: "make install" args: - chdir: "{{ iperf_target_dir }}/iperf-{{ item }}/" + chdir: "{{ iperf_target_dir }}/iperf-{{ item }}/" loop: "{{ iperf_version }}" tags: - - iperf-inst
\ No newline at end of file + - iperf-inst diff --git a/fdio.infra.ansible/roles/jenkins_job_health_exporter/defaults/main.yaml b/fdio.infra.ansible/roles/jenkins_job_health_exporter/defaults/main.yaml index 4ffa94ddef..73a0caecfa 100644 --- a/fdio.infra.ansible/roles/jenkins_job_health_exporter/defaults/main.yaml +++ b/fdio.infra.ansible/roles/jenkins_job_health_exporter/defaults/main.yaml @@ -32,4 +32,4 @@ jenkins_job_health_exporter_restart_handler_state: "restarted" jenkins_job_health_exporter_target_dir: "/usr/bin" jenkins_job_health_exporter_conf_dir: "/etc" jenkins_job_health_exporter_url: "https://github.com/ayourtch/jenkins-job-health-exporter/releases/download" -jenkins_job_health_exporter_version: "v0.0.3"
\ No newline at end of file +jenkins_job_health_exporter_version: "v0.0.3" diff --git a/fdio.infra.ansible/roles/kernel/defaults/main.yaml b/fdio.infra.ansible/roles/kernel/defaults/main.yaml index b9b4253622..92dc30f58b 100644 --- a/fdio.infra.ansible/roles/kernel/defaults/main.yaml +++ b/fdio.infra.ansible/roles/kernel/defaults/main.yaml @@ -40,4 +40,4 @@ absent_packages_by_distro: focal: - "amd64-microcode" - "intel-microcode" - - "iucode-tool"
\ No newline at end of file + - "iucode-tool" diff --git a/fdio.infra.ansible/roles/kernel/handlers/main.yaml b/fdio.infra.ansible/roles/kernel/handlers/main.yaml index 963fd71756..8e1239ab31 100644 --- a/fdio.infra.ansible/roles/kernel/handlers/main.yaml +++ b/fdio.infra.ansible/roles/kernel/handlers/main.yaml @@ -5,4 +5,4 @@ reboot: reboot_timeout: 3600 tags: - - reboot-server
\ No newline at end of file + - reboot-server diff --git a/fdio.infra.ansible/roles/kernel/tasks/ubuntu_bionic.yaml b/fdio.infra.ansible/roles/kernel/tasks/ubuntu_bionic.yaml index 349c853c11..950e1bf44c 100644 --- a/fdio.infra.ansible/roles/kernel/tasks/ubuntu_bionic.yaml +++ b/fdio.infra.ansible/roles/kernel/tasks/ubuntu_bionic.yaml @@ -48,4 +48,4 @@ state: absent purge: true tags: - - kernel-inst
\ No newline at end of file + - kernel-inst diff --git a/fdio.infra.ansible/roles/kernel/tasks/ubuntu_focal.yaml b/fdio.infra.ansible/roles/kernel/tasks/ubuntu_focal.yaml index 9cbc4d4787..bc59db3761 100644 --- a/fdio.infra.ansible/roles/kernel/tasks/ubuntu_focal.yaml +++ b/fdio.infra.ansible/roles/kernel/tasks/ubuntu_focal.yaml @@ -48,4 +48,4 @@ state: absent purge: true tags: - - kernel-inst
\ No newline at end of file + - kernel-inst diff --git a/fdio.infra.ansible/roles/kernel_vm/tasks/main.yaml b/fdio.infra.ansible/roles/kernel_vm/tasks/main.yaml index 4d1b306e64..78bb822f80 100644 --- a/fdio.infra.ansible/roles/kernel_vm/tasks/main.yaml +++ b/fdio.infra.ansible/roles/kernel_vm/tasks/main.yaml @@ -5,8 +5,8 @@ copy: src: "/etc/initramfs-tools/modules" dest: "/tmp/initramfs_modules.bkp" - remote_src: yes - ignore_errors: yes + remote_src: true + ignore_errors: true register: __initramfs_modules_backuped tags: - kernel-inst-image @@ -15,8 +15,8 @@ copy: src: "/etc/initramfs-tools/conf.d/resume" dest: "/tmp/initramfs-resume.bkp" - remote_src: yes - ignore_errors: yes + remote_src: true + ignore_errors: true register: __initramfs_resume_backuped tags: - kernel-inst-image @@ -51,7 +51,7 @@ copy: src: "/boot/vmlinuz-{{ ansible_kernel }}" dest: "/opt/boot/vmlinuz-{{ ansible_kernel }}" - remote_src: yes + remote_src: true tags: - kernel-inst-image @@ -59,8 +59,8 @@ copy: src: "/tmp/initramfs_modules.bkp" dest: "/etc/initramfs-tools/modules" - remote_src: yes - ignore_errors: yes + remote_src: true + ignore_errors: true when: __initramfs_modules_backuped tags: - kernel-inst-image @@ -77,8 +77,8 @@ copy: src: "/tmp/initramfs-resume.bkp" dest: "/etc/initramfs-tools/conf.d/resume" - remote_src: yes - ignore_errors: yes + remote_src: true + ignore_errors: true when: __initramfs_resume_backuped tags: - kernel-inst-image diff --git a/fdio.infra.ansible/roles/kubernetes/tasks/ubuntu_bionic.yaml b/fdio.infra.ansible/roles/kubernetes/tasks/ubuntu_bionic.yaml index 454e80e002..e2f2b86058 100644 --- a/fdio.infra.ansible/roles/kubernetes/tasks/ubuntu_bionic.yaml +++ b/fdio.infra.ansible/roles/kubernetes/tasks/ubuntu_bionic.yaml @@ -9,7 +9,7 @@ - 'software-properties-common' state: 'present' cache_valid_time: 3600 - install_recommends: False + install_recommends: false tags: install-kubernetes - name: Kubernetes repository - Add an Apt signing key @@ -22,7 +22,7 @@ apt_repository: repo: '{{ kubernetes_apt_repository }}' state: '{{ kubernetes_apt_repository_state }}' - update_cache: yes + update_cache: true tags: install-kubernetes - name: Kubernetes - Install @@ -33,5 +33,5 @@ - 'kubectl={{ kubernetes_version }}' - 'kubelet={{ kubernetes_version }}' state: '{{ kubernetes_apt_package_state }}' - force: True + force: true tags: install-kubernetes diff --git a/fdio.infra.ansible/roles/mellanox/defaults/main.yaml b/fdio.infra.ansible/roles/mellanox/defaults/main.yaml index 0961ec7df6..0caaae1e1a 100644 --- a/fdio.infra.ansible/roles/mellanox/defaults/main.yaml +++ b/fdio.infra.ansible/roles/mellanox/defaults/main.yaml @@ -18,4 +18,4 @@ packages_by_arch: x86_64: - [] -mellanox_version: "5.2-1.0.4.0"
\ No newline at end of file +mellanox_version: "5.2-1.0.4.0" diff --git a/fdio.infra.ansible/roles/mellanox/tasks/main.yaml b/fdio.infra.ansible/roles/mellanox/tasks/main.yaml index 670282923a..3cccdb7727 100644 --- a/fdio.infra.ansible/roles/mellanox/tasks/main.yaml +++ b/fdio.infra.ansible/roles/mellanox/tasks/main.yaml @@ -3,7 +3,7 @@ - name: Inst - Update Package Cache (APT) apt: - update_cache: yes + update_cache: true cache_valid_time: 3600 when: - ansible_distribution|lower == 'ubuntu' @@ -20,8 +20,8 @@ - name: Inst - Check Presence of Mellanox Hardware shell: "lspci | grep Mellanox | awk '{print $1}'" register: mellanox_pcis - failed_when: no - changed_when: no + failed_when: false + changed_when: false tags: - mellanox-inst diff --git a/fdio.infra.ansible/roles/nomad/meta/main.yaml b/fdio.infra.ansible/roles/nomad/meta/main.yaml index 7036087739..4f467ceee3 100644 --- a/fdio.infra.ansible/roles/nomad/meta/main.yaml +++ b/fdio.infra.ansible/roles/nomad/meta/main.yaml @@ -6,7 +6,7 @@ # conf: ? # info: 1.0 - added role -dependencies: [ docker ] +dependencies: [docker] galaxy_info: role_name: nomad diff --git a/fdio.infra.ansible/roles/performance_tuning/defaults/main.yaml b/fdio.infra.ansible/roles/performance_tuning/defaults/main.yaml index 2dad931e92..128be4970b 100644 --- a/fdio.infra.ansible/roles/performance_tuning/defaults/main.yaml +++ b/fdio.infra.ansible/roles/performance_tuning/defaults/main.yaml @@ -17,4 +17,4 @@ packages_by_arch: aarch64: - [] x86_64: - - []
\ No newline at end of file + - [] diff --git a/fdio.infra.ansible/roles/performance_tuning/tasks/main.yaml b/fdio.infra.ansible/roles/performance_tuning/tasks/main.yaml index e9cdd0d819..b123be0a3c 100644 --- a/fdio.infra.ansible/roles/performance_tuning/tasks/main.yaml +++ b/fdio.infra.ansible/roles/performance_tuning/tasks/main.yaml @@ -3,7 +3,7 @@ - name: Inst - Update Package Cache (APT) apt: - update_cache: yes + update_cache: true cache_valid_time: 3600 when: - ansible_distribution|lower == 'ubuntu' @@ -186,4 +186,4 @@ tags: - perf-conf-load-kernel-modules -- meta: flush_handlers
\ No newline at end of file +- meta: flush_handlers diff --git a/fdio.infra.ansible/roles/performance_tuning/tasks/turbo_boost.yaml b/fdio.infra.ansible/roles/performance_tuning/tasks/turbo_boost.yaml index 7f69365a2d..cff71e9ce3 100644 --- a/fdio.infra.ansible/roles/performance_tuning/tasks/turbo_boost.yaml +++ b/fdio.infra.ansible/roles/performance_tuning/tasks/turbo_boost.yaml @@ -3,7 +3,7 @@ - name: Inst - Update Package Cache (APT) apt: - update_cache: yes + update_cache: true cache_valid_time: 3600 when: - ansible_distribution|lower == 'ubuntu' @@ -39,6 +39,6 @@ - name: Conf - Custom Startup Service Hook Enable service: name: "disable-turbo-boost" - enabled: yes + enabled: true tags: - turbo-conf-msr diff --git a/fdio.infra.ansible/roles/prometheus_exporter/files/blackbox.yml b/fdio.infra.ansible/roles/prometheus_exporter/files/blackbox.yml index f61c26e1a8..526dcf5dce 100644 --- a/fdio.infra.ansible/roles/prometheus_exporter/files/blackbox.yml +++ b/fdio.infra.ansible/roles/prometheus_exporter/files/blackbox.yml @@ -22,4 +22,4 @@ modules: query_name: "jenkins.fd.io" query_type: "A" valid_rcodes: - - NOERROR
\ No newline at end of file + - NOERROR diff --git a/fdio.infra.ansible/roles/prometheus_exporter/tasks/main.yaml b/fdio.infra.ansible/roles/prometheus_exporter/tasks/main.yaml index 3f4b563352..3fe40f031a 100644 --- a/fdio.infra.ansible/roles/prometheus_exporter/tasks/main.yaml +++ b/fdio.infra.ansible/roles/prometheus_exporter/tasks/main.yaml @@ -3,7 +3,7 @@ - name: Inst - Update Package Cache (APT) apt: - update_cache: yes + update_cache: true cache_valid_time: 3600 when: - ansible_distribution|lower == 'ubuntu' @@ -23,10 +23,10 @@ image: "{{ ne_image }}" state: "started" restart_policy: "unless-stopped" - detach: yes + detach: true ports: - - "9100:9100" - privileged: yes + - "9100:9100" + privileged: true command: - "--path.procfs=/host/proc" - "--path.rootfs=/rootfs" @@ -49,8 +49,8 @@ - name: Conf - Prometheus Blackbox Exporter copy: - src: "files/blackbox.yml" - dest: "/etc/prometheus/blackbox.yml" + src: "files/blackbox.yml" + dest: "/etc/prometheus/blackbox.yml" tags: - prometheus-conf-blackbox-exporter @@ -60,13 +60,13 @@ image: "{{ be_image }}" state: "started" restart_policy: "unless-stopped" - detach: yes + detach: true ports: - - "9115:9115" - privileged: yes + - "9115:9115" + privileged: true command: - "--config.file=/config/blackbox.yml" volumes: - "/etc/prometheus/blackbox.yml:/config/blackbox.yml:ro" tags: - - prometheus-inst
\ No newline at end of file + - prometheus-inst diff --git a/fdio.infra.ansible/roles/python_env/defaults/main.yaml b/fdio.infra.ansible/roles/python_env/defaults/main.yaml index 342d1c3d33..36e599acfe 100644 --- a/fdio.infra.ansible/roles/python_env/defaults/main.yaml +++ b/fdio.infra.ansible/roles/python_env/defaults/main.yaml @@ -38,4 +38,4 @@ packages_by_arch: aarch64: - [] x86_64: - - []
\ No newline at end of file + - [] diff --git a/fdio.infra.ansible/roles/python_env/tasks/main.yaml b/fdio.infra.ansible/roles/python_env/tasks/main.yaml index 261e15ac32..7df8008a27 100644 --- a/fdio.infra.ansible/roles/python_env/tasks/main.yaml +++ b/fdio.infra.ansible/roles/python_env/tasks/main.yaml @@ -3,7 +3,7 @@ - name: Inst - Update package cache (apt) apt: - update_cache: yes + update_cache: true cache_valid_time: 3600 when: - ansible_distribution|lower == 'ubuntu' diff --git a/fdio.infra.ansible/roles/tg/handlers/main.yaml b/fdio.infra.ansible/roles/tg/handlers/main.yaml index e13e67b2c1..b2c32a7078 100644 --- a/fdio.infra.ansible/roles/tg/handlers/main.yaml +++ b/fdio.infra.ansible/roles/tg/handlers/main.yaml @@ -3,7 +3,7 @@ - name: Start csit-initialize-docker-tg.service systemd: - enabled: yes + enabled: true state: "started" name: "csit-initialize-docker-tg.service" tags: diff --git a/fdio.infra.ansible/roles/tg/tasks/main.yaml b/fdio.infra.ansible/roles/tg/tasks/main.yaml index 4e79dabfab..70ed384826 100644 --- a/fdio.infra.ansible/roles/tg/tasks/main.yaml +++ b/fdio.infra.ansible/roles/tg/tasks/main.yaml @@ -3,11 +3,11 @@ - name: Conf - csit-initialize-docker-tg.sh copy: - src: "files/csit-initialize-docker-tg.sh" - dest: "/usr/local/bin/csit-initialize-docker-tg.sh" - owner: "root" - group: "root" - mode: 0744 + src: "files/csit-initialize-docker-tg.sh" + dest: "/usr/local/bin/csit-initialize-docker-tg.sh" + owner: "root" + group: "root" + mode: 0744 when: - docker_tg is defined tags: @@ -15,11 +15,11 @@ - name: Conf - Start csit-initialize-docker-tg.service copy: - src: "files/csit-initialize-docker-tg.service" - dest: "/etc/systemd/system/" - owner: "root" - group: "root" - mode: 0644 + src: "files/csit-initialize-docker-tg.service" + dest: "/etc/systemd/system/" + owner: "root" + group: "root" + mode: 0644 notify: - "Start csit-initialize-docker-tg.service" when: diff --git a/fdio.infra.ansible/roles/trex/defaults/main.yaml b/fdio.infra.ansible/roles/trex/defaults/main.yaml index 19bb15e9d3..999251863f 100644 --- a/fdio.infra.ansible/roles/trex/defaults/main.yaml +++ b/fdio.infra.ansible/roles/trex/defaults/main.yaml @@ -41,4 +41,4 @@ trex_target_dir: "/opt" trex_url: "https://github.com/cisco-system-traffic-generator/trex-core/archive/" trex_version: # master // ubuntu 20.04 - - "2.88"
\ No newline at end of file + - "2.88" diff --git a/fdio.infra.ansible/roles/trex/tasks/deploy_block.yaml b/fdio.infra.ansible/roles/trex/tasks/deploy_block.yaml index 5a7890b071..9aeb1be023 100644 --- a/fdio.infra.ansible/roles/trex/tasks/deploy_block.yaml +++ b/fdio.infra.ansible/roles/trex/tasks/deploy_block.yaml @@ -5,7 +5,7 @@ get_url: url: "{{ trex_url }}/v{{ item }}.tar.gz" dest: "{{ trex_target_dir }}/trex-core-{{ item }}.tar.gz" - validate_certs: False + validate_certs: false mode: 0644 register: trex_downloaded @@ -33,23 +33,23 @@ - name: Compile Release {{ item }} Part I command: "./b configure" args: - chdir: "{{ trex_target_dir }}/trex-core-{{ item }}/linux_dpdk/" + chdir: "{{ trex_target_dir }}/trex-core-{{ item }}/linux_dpdk/" when: trex_extracted.changed - name: Compile Release {{ item }} Part II command: "./b build" args: - chdir: "{{ trex_target_dir }}/trex-core-{{ item }}/linux_dpdk/" + chdir: "{{ trex_target_dir }}/trex-core-{{ item }}/linux_dpdk/" when: trex_extracted.changed - name: Compile Release {{ item }} Part III command: "make -j 16" args: - chdir: "{{ trex_target_dir }}/trex-core-{{ item }}/scripts/ko/src" + chdir: "{{ trex_target_dir }}/trex-core-{{ item }}/scripts/ko/src" when: trex_extracted.changed - name: Compile Release {{ item }} Part IV command: "make install" args: - chdir: "{{ trex_target_dir }}/trex-core-{{ item }}/scripts/ko/src" - when: trex_extracted.changed
\ No newline at end of file + chdir: "{{ trex_target_dir }}/trex-core-{{ item }}/scripts/ko/src" + when: trex_extracted.changed diff --git a/fdio.infra.ansible/roles/trex/tasks/main.yaml b/fdio.infra.ansible/roles/trex/tasks/main.yaml index d43baf909b..8f659b697c 100644 --- a/fdio.infra.ansible/roles/trex/tasks/main.yaml +++ b/fdio.infra.ansible/roles/trex/tasks/main.yaml @@ -3,7 +3,7 @@ - name: Inst - Update Package Cache (APT) apt: - update_cache: yes + update_cache: true cache_valid_time: 3600 when: - ansible_distribution|lower == 'ubuntu' @@ -21,4 +21,4 @@ include_tasks: deploy_block.yaml loop: "{{ trex_version }}" tags: - - trex-inst
\ No newline at end of file + - trex-inst diff --git a/fdio.infra.ansible/roles/user_add/defaults/main.yaml b/fdio.infra.ansible/roles/user_add/defaults/main.yaml index fc80b8aa72..643ad7dfd7 100644 --- a/fdio.infra.ansible/roles/user_add/defaults/main.yaml +++ b/fdio.infra.ansible/roles/user_add/defaults/main.yaml @@ -11,4 +11,4 @@ users_create_homedirs: true users: [] # Default enable password login. -sshd_disable_password_login: false
\ No newline at end of file +sshd_disable_password_login: false diff --git a/fdio.infra.ansible/roles/vagrant/tasks/main.yml b/fdio.infra.ansible/roles/vagrant/tasks/main.yml index fa4ab4af9a..14e919cb31 100644 --- a/fdio.infra.ansible/roles/vagrant/tasks/main.yml +++ b/fdio.infra.ansible/roles/vagrant/tasks/main.yml @@ -8,7 +8,7 @@ value: "512" state: "present" sysctl_file: "/etc/sysctl.d/90-csit.conf" - reload: yes + reload: true - name: "Add user for running tests: {{ csit.test_user.name }}" user: @@ -31,12 +31,12 @@ git: repo: "{{ csit.repository.url }}" dest: "{{ csit.home }}" - accept_hostkey: yes + accept_hostkey: true version: "{{ csit.repository.version }}" -- name: Load csit docker image from local drive if it exists (/vagrant/csit-sut.tar) +- name: Load csit docker image from local path if exists (/vagrant/csit-sut.tar) shell: | if [ -z "$(docker images -q `cat {{ csit.home }}/VPP_DEVICE_IMAGE`)" ] && [ -e /vagrant/csit-sut.tar ]; then docker load -i /vagrant/csit-sut.tar; fi; - ignore_errors: yes + ignore_errors: true diff --git a/fdio.infra.ansible/roles/vault/defaults/main.yaml b/fdio.infra.ansible/roles/vault/defaults/main.yaml index 232dc40694..817de84ae9 100644 --- a/fdio.infra.ansible/roles/vault/defaults/main.yaml +++ b/fdio.infra.ansible/roles/vault/defaults/main.yaml @@ -156,4 +156,4 @@ vault_tls_cipher_suites: "" vault_tls_prefer_server_cipher_suites: "{{ lookup('env','VAULT_TLS_PREFER_SERVER_CIPHER_SUITES') | default('false', true) }}" vault_tls_files_remote_src: false vault_tls_require_and_verify_client_cert: false -vault_tls_disable_client_certs: false
\ No newline at end of file +vault_tls_disable_client_certs: false diff --git a/fdio.infra.ansible/roles/vault/meta/main.yaml b/fdio.infra.ansible/roles/vault/meta/main.yaml index b97486a6e7..e48e7d7976 100644 --- a/fdio.infra.ansible/roles/vault/meta/main.yaml +++ b/fdio.infra.ansible/roles/vault/meta/main.yaml @@ -6,7 +6,7 @@ # conf: ? # info: 1.0 - added role -dependencies: [ ] +dependencies: [] galaxy_info: role_name: vault diff --git a/fdio.infra.ansible/roles/vault/tasks/main.yaml b/fdio.infra.ansible/roles/vault/tasks/main.yaml index 8b9e3bf76f..300cfdb363 100644 --- a/fdio.infra.ansible/roles/vault/tasks/main.yaml +++ b/fdio.infra.ansible/roles/vault/tasks/main.yaml @@ -106,17 +106,17 @@ tags: - vault-conf -#- name: Conf - Copy Certificates And Keys -# copy: -# content: "{{ item.src }}" -# dest: "{{ item.dest }}" -# owner: "{{ vault_user }}" -# group: "{{ vault_group }}" -# mode: 0600 -# no_log: true -# loop: "{{ vault_certificates | flatten(levels=1) }}" -# tags: -# - vault-conf +# - name: Conf - Copy Certificates And Keys +# copy: +# content: "{{ item.src }}" +# dest: "{{ item.dest }}" +# owner: "{{ vault_user }}" +# group: "{{ vault_group }}" +# mode: 0600 +# no_log: true +# loop: "{{ vault_certificates | flatten(levels=1) }}" +# tags: +# - vault-conf - name: Conf - System.d Script template: diff --git a/fdio.infra.ansible/roles/vpp/tasks/main.yaml b/fdio.infra.ansible/roles/vpp/tasks/main.yaml index ef03011b51..320584c432 100644 --- a/fdio.infra.ansible/roles/vpp/tasks/main.yaml +++ b/fdio.infra.ansible/roles/vpp/tasks/main.yaml @@ -3,7 +3,7 @@ - name: Inst - Update Package Cache (APT) apt: - update_cache: yes + update_cache: true cache_valid_time: 3600 when: - ansible_distribution|lower == 'ubuntu' @@ -22,6 +22,6 @@ src: "/dev/null" dest: "/etc/sysctl.d/80-vpp.conf" state: "link" - become: yes + become: true tags: - vpp-conf-sysctl diff --git a/fdio.infra.ansible/roles/vpp_device/defaults/main.yaml b/fdio.infra.ansible/roles/vpp_device/defaults/main.yaml index d001608c7a..9816d7087c 100644 --- a/fdio.infra.ansible/roles/vpp_device/defaults/main.yaml +++ b/fdio.infra.ansible/roles/vpp_device/defaults/main.yaml @@ -3,4 +3,4 @@ iavf_target_dir: "/opt" iavf_version: "4.1.1" -iavf_url: "https://downloads.sourceforge.net/project/e1000/iavf%20stable/{{ iavf_version }}/iavf-{{ iavf_version }}.tar.gz?ts=gAAAAABgvfs_L6gSH8B09NfEc8fzoooS3M2wyuOxlFEK5EtTstZWFdb2dYcqJZNqiirAT87dbc3GeJJrRst9KfUgS-byAeyaLw%3D%3D&r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fe1000%2Ffiles%2Fiavf%2520stable%2F{{ iavf_version }}%2Fiavf-{{ iavf_version }}.tar.gz%2Fdownload"
\ No newline at end of file +iavf_url: "https://downloads.sourceforge.net/project/e1000/iavf%20stable/{{ iavf_version }}/iavf-{{ iavf_version }}.tar.gz?ts=gAAAAABgvfs_L6gSH8B09NfEc8fzoooS3M2wyuOxlFEK5EtTstZWFdb2dYcqJZNqiirAT87dbc3GeJJrRst9KfUgS-byAeyaLw%3D%3D&r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fe1000%2Ffiles%2Fiavf%2520stable%2F{{ iavf_version }}%2Fiavf-{{ iavf_version }}.tar.gz%2Fdownload" diff --git a/fdio.infra.ansible/roles/vpp_device/handlers/main.yaml b/fdio.infra.ansible/roles/vpp_device/handlers/main.yaml index ee9d368638..29342ae43c 100644 --- a/fdio.infra.ansible/roles/vpp_device/handlers/main.yaml +++ b/fdio.infra.ansible/roles/vpp_device/handlers/main.yaml @@ -3,7 +3,7 @@ - name: Start csit-initialize-vfs.service systemd: - enabled: yes + enabled: true state: started name: csit-initialize-vfs.service tags: diff --git a/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml b/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml index 9dbee8d99d..0114b05a40 100644 --- a/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml +++ b/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml @@ -75,43 +75,43 @@ - name: Copy csit-initialize-vfs.sh copy: - src: "files/csit-initialize-vfs.sh" - dest: "/usr/local/bin/" - owner: "root" - group: "root" - mode: 0744 + src: "files/csit-initialize-vfs.sh" + dest: "/usr/local/bin/" + owner: "root" + group: "root" + mode: 0744 tags: - copy-vf-script - name: Copy csit-initialize-vfs-data.sh copy: - src: "files/{{ vfs_data_file }}" - dest: "/usr/local/bin/csit-initialize-vfs-data.sh" - owner: "root" - group: "root" - mode: 0744 + src: "files/{{ vfs_data_file }}" + dest: "/usr/local/bin/csit-initialize-vfs-data.sh" + owner: "root" + group: "root" + mode: 0744 tags: copy-vf-data-script when: - vfs_data_file is defined - name: Copy Default csit-initialize-vfs-data.sh copy: - src: "files/csit-initialize-vfs-default.sh" - dest: "/usr/local/bin/csit-initialize-vfs-data.sh" - owner: "root" - group: "root" - mode: 0744 + src: "files/csit-initialize-vfs-default.sh" + dest: "/usr/local/bin/csit-initialize-vfs-data.sh" + owner: "root" + group: "root" + mode: 0744 tags: copy-vf-data-script when: - vfs_data_file is not defined - name: Start csit-initialize-vfs.service copy: - src: "files/csit-initialize-vfs.service" - dest: "/etc/systemd/system/" - owner: "root" - group: "root" - mode: 0644 + src: "files/csit-initialize-vfs.service" + dest: "/etc/systemd/system/" + owner: "root" + group: "root" + mode: 0644 notify: - "Start csit-initialize-vfs.service" tags: |