roles:
- role: topology
tags: topology
-
- hosts: dev
remote_user: testuser
- become: yes
+ become: true
become_user: root
gather_facts: false
pre_tasks:
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
+ dns-search: ["{{ansible_hostname}}"]
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
\ No newline at end of file
+ dns-search: ["{{ansible_hostname}}"]
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
+ dns-search: ["{{ansible_hostname}}"]
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
+ dns-search: ["{{ansible_hostname}}"]
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
+ dns-search: ["{{ansible_hostname}}"]
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
+ dns-search: ["{{ansible_hostname}}"]
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
+ dns-search: ["{{ansible_hostname}}"]
isolcpus: "1-15,17-31,33-47,49-63"
nmi_watchdog: "0"
nohz_full: "1-15,17-31,33-47,49-63"
- nosoftlockup: True
+ nosoftlockup: true
processor.max_cstate: "1"
rcu_nocbs: "1-15,17-31,33-47,49-63"
sysctl:
vm:
nr_hugepages: 32768
-inventory_ipmi_hostname: '10.30.50.36'
+inventory_ipmi_hostname: "10.30.50.36"
cpu_microarchitecture: "taishan"
isolcpus: "1-15,17-31,33-47,49-63"
nmi_watchdog: "0"
nohz_full: "1-15,17-31,33-47,49-63"
- nosoftlockup: True
+ nosoftlockup: true
processor.max_cstate: "1"
rcu_nocbs: "1-15,17-31,33-47,49-63"
sysctl:
vm:
nr_hugepages: 32768
-inventory_ipmi_hostname: '10.30.50.37'
+inventory_ipmi_hostname: "10.30.50.37"
cpu_microarchitecture: "taishan"
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
\ No newline at end of file
+ dns-search: ["{{ansible_hostname}}"]
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
\ No newline at end of file
+ dns-search: ["{{ansible_hostname}}"]
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 65536
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.50.41'
+inventory_ipmi_hostname: "10.30.50.41"
cpu_microarchitecture: "skylake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 8192
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.50.42'
+inventory_ipmi_hostname: "10.30.50.42"
cpu_microarchitecture: "skylake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 36864
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.50.43'
+inventory_ipmi_hostname: "10.30.50.43"
cpu_microarchitecture: "skylake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 36864
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.50.44'
+inventory_ipmi_hostname: "10.30.50.44"
cpu_microarchitecture: "skylake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 8192
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.50.45'
+inventory_ipmi_hostname: "10.30.50.45"
cpu_microarchitecture: "skylake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 16384
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.50.46'
+inventory_ipmi_hostname: "10.30.50.46"
cpu_microarchitecture: "skylake"
docker_tg: true
# Docker settings.
docker_daemon:
default-shm-size: "1073741824"
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ ansible_hostname }}" ]
- host: [ "172.17.0.1:/var/run/docker.sock" ]
+ dns-search: ["{{ ansible_hostname }}"]
+ host: ["172.17.0.1:/var/run/docker.sock"]
# Docker settings.
docker_daemon:
default-shm-size: "1073741824"
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ ansible_hostname }}" ]
- host: [ "172.17.0.1:/var/run/docker.sock" ]
+ dns-search: ["{{ ansible_hostname }}"]
+ host: ["172.17.0.1:/var/run/docker.sock"]
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 65536
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.50.49'
+inventory_ipmi_hostname: "10.30.50.49"
cpu_microarchitecture: "skylake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 8192
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.50.50'
+inventory_ipmi_hostname: "10.30.50.50"
cpu_microarchitecture: "skylake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 65536
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.50.51'
+inventory_ipmi_hostname: "10.30.50.51"
cpu_microarchitecture: "skylake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 8192
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.50.52'
+inventory_ipmi_hostname: "10.30.50.52"
cpu_microarchitecture: "skylake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 65536
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.50.53'
+inventory_ipmi_hostname: "10.30.50.53"
cpu_microarchitecture: "skylake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 8192
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.50.54'
+inventory_ipmi_hostname: "10.30.50.54"
cpu_microarchitecture: "skylake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 36864
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.50.55'
+inventory_ipmi_hostname: "10.30.50.55"
cpu_microarchitecture: "skylake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 36864
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.50.56'
+inventory_ipmi_hostname: "10.30.50.56"
cpu_microarchitecture: "skylake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 8192
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.50.57'
+inventory_ipmi_hostname: "10.30.50.57"
cpu_microarchitecture: "skylake"
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
\ No newline at end of file
+ dns-search: ["{{ansible_hostname}}"]
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
\ No newline at end of file
+ dns-search: ["{{ansible_hostname}}"]
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
\ No newline at end of file
+ dns-search: ["{{ansible_hostname}}"]
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
\ No newline at end of file
+ dns-search: ["{{ansible_hostname}}"]
isolcpus: "1-27,29-55"
nmi_watchdog: "0"
nohz_full: "1-27,29-55"
- nosoftlockup: True
+ nosoftlockup: true
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55"
sysctl:
# Docker settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ ansible_hostname }}" ]
- storage-driver: "overlay2"
\ No newline at end of file
+ dns-search: ["{{ansible_hostname}}"]
+ storage-driver: "overlay2"
# Docker settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ ansible_hostname }}" ]
- storage-driver: "overlay2"
\ No newline at end of file
+ dns-search: ["{{ansible_hostname}}"]
+ storage-driver: "overlay2"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 16384
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.55.10'
+inventory_ipmi_hostname: "10.30.55.10"
cpu_microarchitecture: "skylake"
docker_tg: true
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-5"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-5"
nr_hugepages: 8192
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.55.11'
+inventory_ipmi_hostname: "10.30.55.11"
cpu_microarchitecture: "denverton"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-5"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-5"
nr_hugepages: 8192
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.55.12'
+inventory_ipmi_hostname: "10.30.55.12"
cpu_microarchitecture: "denverton"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-5"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-5"
nr_hugepages: 8192
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.55.13'
+inventory_ipmi_hostname: "10.30.55.13"
cpu_microarchitecture: "denverton"
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
\ No newline at end of file
+ dns-search: ["{{ansible_hostname}}"]
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
\ No newline at end of file
+ dns-search: ["{{ansible_hostname}}"]
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
+ dns-search: ["{{ansible_hostname}}"]
# Docker daemon settings.
docker_daemon:
- dns: [ "172.17.0.1" ]
+ dns: ["172.17.0.1"]
dns-opts: []
- dns-search: [ "{{ansible_hostname}}" ]
+ dns-search: ["{{ansible_hostname}}"]
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-23,25-47,49-71,73-95"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-23,25-47,49-71,73-95"
nr_hugepages: 65536
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.55.18'
+inventory_ipmi_hostname: "10.30.55.18"
cpu_microarchitecture: "cascadelake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 8192
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.55.19'
+inventory_ipmi_hostname: "10.30.55.19"
cpu_microarchitecture: "cascadelake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-23,25-47,49-71,73-95"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-23,25-47,49-71,73-95"
nr_hugepages: 65536
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.55.20'
+inventory_ipmi_hostname: "10.30.55.20"
cpu_microarchitecture: "cascadelake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 8192
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.55.21'
+inventory_ipmi_hostname: "10.30.55.21"
cpu_microarchitecture: "cascadelake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-23,25-47,49-71,73-95"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-23,25-47,49-71,73-95"
nr_hugepages: 65536
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.55.22'
+inventory_ipmi_hostname: "10.30.55.22"
cpu_microarchitecture: "cascadelake"
mce: "off"
nmi_watchdog: "0"
nohz_full: "1-27,29-55,57-83,85-111"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "1"
rcu_nocbs: "1-27,29-55,57-83,85-111"
nr_hugepages: 8192
max_map_count: 20000
-inventory_ipmi_hostname: '10.30.55.23'
+inventory_ipmi_hostname: "10.30.55.23"
cpu_microarchitecture: "cascadelake"
isolcpus: "1-15,17-31,33-47,49-63"
nmi_watchdog: "0"
nohz_full: "off"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "0"
rcu_nocbs: "1-15,17-31,33-47,49-63"
isolcpus: "1-15,17-31,33-47,49-63"
nmi_watchdog: "0"
nohz_full: "off"
- nosoftlockup: True
+ nosoftlockup: true
numa_balancing: "disable"
processor.max_cstate: "0"
rcu_nocbs: "1-15,17-31,33-47,49-63"
---
# file: host_vars/x.x.x.x.yaml
-hostname: 't1-tg1'
+hostname: "t1-tg1"
grub:
- - isolcpus: '1-27,29-55,57-83,85-111'
- - nohz_full: '1-27,29-55,57-83,85-111'
- - rcu_nocbs: '1-27,29-55,57-83,85-111'
+ - isolcpus: "1-27,29-55,57-83,85-111"
+ - nohz_full: "1-27,29-55,57-83,85-111"
+ - rcu_nocbs: "1-27,29-55,57-83,85-111"
sysctl:
- kernel:
- - watchdog_cpumask: '0,28,56,84'
+ - watchdog_cpumask: "0,28,56,84"
- vm:
- - nr_hugepages: 4096
- - max_map_count: 20000
+ - nr_hugepages: 4096
+ - max_map_count: 20000
-inventory_ipmi_hostname: 'x.x.x.x'
+inventory_ipmi_hostname: "x.x.x.x"
cpu_microarchitecture: "skylake"
# file: vagrant_inventory/group_vars/all.yaml
# Ansible interpreter (for PIP)
-ansible_python_interpreter: "/usr/bin/python3"
\ No newline at end of file
+ansible_python_interpreter: "/usr/bin/python3"
- hosts: nomad
remote_user: localadmin
- become: yes
+ become: true
become_user: root
gather_facts: false
pre_tasks:
- name: Inst - Update Package Cache (APT)
apt:
- update_cache: yes
+ update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
name: "{{ packages | flatten(levels=1) }}"
state: present
tags:
- - ab-inst
\ No newline at end of file
+ - ab-inst
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
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
---
# file: roles/azure/defaults/main.yaml
-
hostname: "{{ inventory_cimc_hostname }}"
username: "{{ inventory_cimc_username }}"
password: "{{ inventory_cimc_password }}"
- validate_certs: no
+ validate_certs: false
content: |
<!-- Configure PXE boot -->
<configConfMo><inConfig>
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"/>
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"/>
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"/>
hostname: "{{ inventory_cimc_hostname }}"
username: "{{ inventory_cimc_username }}"
password: "{{ inventory_cimc_password }}"
- validate_certs: no
+ validate_certs: false
content: |
<!-- Power cycle server -->
<configConfMo><inConfig>
name: "{{ inventory_ipmi_hostname }}"
user: "{{ inventory_ipmi_username }}"
password: "{{ inventory_ipmi_password }}"
- state: on
+ state: true
delegate_to: localhost
tags:
- power-up
name: "{{ inventory_ipmi_hostname }}"
user: "{{ inventory_ipmi_username }}"
password: "{{ inventory_ipmi_password }}"
- state: off
+ state: false
delegate_to: localhost
tags:
- power-down
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"
- name: Inst - Update Package Cache (APT)
apt:
- update_cache: yes
+ update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
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"
- name: Inst - Update Package Cache (APT)
apt:
- update_cache: yes
+ update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
- 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
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
- 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!"
- 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!"
- "fdiotools/builder-centos8:prod-x86_64"
- "fdiotools/builder-centos7:prod-x86_64"
tags:
- - clean-images
\ No newline at end of file
+ - clean-images
- 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:
- 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
# 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 }}
- name: Inst - Update package cache (apt)
apt:
- update_cache: yes
+ update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
# conf: ?
# info: 1.0 - added role
-dependencies: [ ]
+dependencies: []
galaxy_info:
role_name: consul
author: fd.io
args:
chdir: "/opt/csit-sut"
tags:
- - csit-sut-image
\ No newline at end of file
+ - csit-sut-image
- "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 }}"
name: "docker"
state: "{{ docker_restart_handler_state }}"
tags:
- - docker-restart-service
\ No newline at end of file
+ - docker-restart-service
---
# file: roles/docker/meta/main.yaml
-dependencies: []
\ No newline at end of file
+dependencies: []
user:
name: "{{ ansible_user }}"
groups: "docker"
- append: True
+ append: true
tags:
- docker-conf-user
- "software-properties-common"
state: "present"
cache_valid_time: 3600
- install_recommends: False
+ install_recommends: false
tags:
- docker-inst-dependencies
apt_repository:
repo: "{{ docker_apt_repository }}"
state: "{{ docker_apt_repository_state }}"
- update_cache: yes
+ update_cache: true
tags:
- docker-conf-apt
- "software-properties-common"
state: "present"
cache_valid_time: 3600
- install_recommends: False
+ install_recommends: false
tags:
- docker-inst-dependencies
apt_repository:
repo: "{{ docker_apt_repository }}"
state: "{{ docker_apt_repository_state }}"
- update_cache: yes
+ update_cache: true
tags:
- docker-conf-apt
# conf: ?
# info: 1.0 - added role
-dependencies: [ ]
+dependencies: []
galaxy_info:
role_name: dpdk
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"
- "make install"
- "modprobe -r i40e"
- "modprobe i40e"
- failed_when: no
+ failed_when: true
when:
- intel_driver_extracted
tags:
- "make install"
- "modprobe -r iavf"
- "modprobe iavf"
- failed_when: no
+ failed_when: true
when:
- intel_driver_extracted
tags:
- "make install"
- "modprobe -r ice"
- "modprobe ice"
- failed_when: no
+ failed_when: false
when:
- intel_driver_extracted
tags:
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
- name: Inst - Update Package Cache (APT)
apt:
- update_cache: yes
+ update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
- 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
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
- name: Inst - Update Package Cache (APT)
apt:
- update_cache: yes
+ update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
- 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
- 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
- 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
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"
focal:
- "amd64-microcode"
- "intel-microcode"
- - "iucode-tool"
\ No newline at end of file
+ - "iucode-tool"
reboot:
reboot_timeout: 3600
tags:
- - reboot-server
\ No newline at end of file
+ - reboot-server
state: absent
purge: true
tags:
- - kernel-inst
\ No newline at end of file
+ - kernel-inst
state: absent
purge: true
tags:
- - kernel-inst
\ No newline at end of file
+ - kernel-inst
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
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
copy:
src: "/boot/vmlinuz-{{ ansible_kernel }}"
dest: "/opt/boot/vmlinuz-{{ ansible_kernel }}"
- remote_src: yes
+ remote_src: true
tags:
- kernel-inst-image
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
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
- '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
apt_repository:
repo: '{{ kubernetes_apt_repository }}'
state: '{{ kubernetes_apt_repository_state }}'
- update_cache: yes
+ update_cache: true
tags: install-kubernetes
- name: Kubernetes - Install
- 'kubectl={{ kubernetes_version }}'
- 'kubelet={{ kubernetes_version }}'
state: '{{ kubernetes_apt_package_state }}'
- force: True
+ force: true
tags: install-kubernetes
x86_64:
- []
-mellanox_version: "5.2-1.0.4.0"
\ No newline at end of file
+mellanox_version: "5.2-1.0.4.0"
- name: Inst - Update Package Cache (APT)
apt:
- update_cache: yes
+ update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
- 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
# conf: ?
# info: 1.0 - added role
-dependencies: [ docker ]
+dependencies: [docker]
galaxy_info:
role_name: nomad
aarch64:
- []
x86_64:
- - []
\ No newline at end of file
+ - []
- name: Inst - Update Package Cache (APT)
apt:
- update_cache: yes
+ update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
tags:
- perf-conf-load-kernel-modules
-- meta: flush_handlers
\ No newline at end of file
+- meta: flush_handlers
- name: Inst - Update Package Cache (APT)
apt:
- update_cache: yes
+ update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
- name: Conf - Custom Startup Service Hook Enable
service:
name: "disable-turbo-boost"
- enabled: yes
+ enabled: true
tags:
- turbo-conf-msr
query_name: "jenkins.fd.io"
query_type: "A"
valid_rcodes:
- - NOERROR
\ No newline at end of file
+ - NOERROR
- name: Inst - Update Package Cache (APT)
apt:
- update_cache: yes
+ update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
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"
- 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
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
aarch64:
- []
x86_64:
- - []
\ No newline at end of file
+ - []
- name: Inst - Update package cache (apt)
apt:
- update_cache: yes
+ update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
- name: Start csit-initialize-docker-tg.service
systemd:
- enabled: yes
+ enabled: true
state: "started"
name: "csit-initialize-docker-tg.service"
tags:
- 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:
- 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:
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"
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
- 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
- name: Inst - Update Package Cache (APT)
apt:
- update_cache: yes
+ update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
include_tasks: deploy_block.yaml
loop: "{{ trex_version }}"
tags:
- - trex-inst
\ No newline at end of file
+ - trex-inst
users: []
# Default enable password login.
-sshd_disable_password_login: false
\ No newline at end of file
+sshd_disable_password_login: false
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:
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
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
# conf: ?
# info: 1.0 - added role
-dependencies: [ ]
+dependencies: []
galaxy_info:
role_name: vault
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:
- name: Inst - Update Package Cache (APT)
apt:
- update_cache: yes
+ update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
src: "/dev/null"
dest: "/etc/sysctl.d/80-vpp.conf"
state: "link"
- become: yes
+ become: true
tags:
- vpp-conf-sysctl
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"
- name: Start csit-initialize-vfs.service
systemd:
- enabled: yes
+ enabled: true
state: started
name: csit-initialize-vfs.service
tags:
- 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:
- import_playbook: vagrant.yaml
tags:
- - vagrant
\ No newline at end of file
+ - vagrant
- hosts: sut
remote_user: testuser
- become: yes
+ become: true
become_user: root
gather_facts: false
pre_tasks:
- hosts: sut_aws
remote_user: testuser
- become: yes
+ become: true
become_user: root
gather_facts: false
pre_tasks:
tags: calibration
- hosts: sut_azure
- become: yes
+ become: true
become_user: root
gather_facts: false
pre_tasks:
- hosts: tg
remote_user: testuser
- become: yes
+ become: true
become_user: root
gather_facts: false
pre_tasks:
- hosts: tg_aws
remote_user: testuser
- become: yes
+ become: true
become_user: root
gather_facts: false
pre_tasks:
tags: calibration
- hosts: tg_azure
- become: yes
+ become: true
become_user: root
gather_facts: false
pre_tasks:
- role: cleanup
tags: cleanup
- role: calibration
- tags: calibration
\ No newline at end of file
+ tags: calibration
- hosts: vagrant
remote_user: vagrant
- become: yes
+ become: true
become_user: root
gather_facts: false
pre_tasks:
- role: vpp
tags: vpp
- role: vagrant
- tags: vagrant
\ No newline at end of file
+ tags: vagrant
- hosts: vpp_device
remote_user: localadmin
- become: yes
+ become: true
become_user: root
gather_facts: false
pre_tasks: