Skip to content
Snippets Groups Projects
Commit 56f1f505 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

reducing the number of unnecessary changed reports from ansible

Former-commit-id: 7e7d77ab
parent 2a2240a6
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ build_cluster_cicd: ...@@ -86,7 +86,7 @@ build_cluster_cicd:
- source ./$NECTAR_ALLOCATION-openrc.sh - source ./$NECTAR_ALLOCATION-openrc.sh
- openstack stack list - openstack stack list
- bash -x ./heat/heatcicdwrapper.sh create_or_update $STACKNAME - bash -x ./heat/heatcicdwrapper.sh create_or_update $STACKNAME
- bash -x ./heat/server_rebuild.sh all - bash -x ./heat/server_rebuild.sh ComputeNodes
after_script: after_script:
- sleep 30 # artifically wait a bit to give the nodes time to boot - sleep 30 # artifically wait a bit to give the nodes time to boot
# only: # only:
...@@ -114,7 +114,7 @@ ansible_create_cluster_stage: ...@@ -114,7 +114,7 @@ ansible_create_cluster_stage:
- ansible -i files/inventory.$STACKNAME --key-file ../gc_key.pem -b -a "systemctl restart slurmdbd" ManagementNodes - ansible -i files/inventory.$STACKNAME --key-file ../gc_key.pem -b -a "systemctl restart slurmdbd" ManagementNodes
- sleep 60 - sleep 60
- echo do it again - echo do it again
- ANSIBLE_STDOUT_CALLBACK=json ansible-playbook -i files/inventory.$STACKNAME --key-file ../gc_key.pem --skip-tags monitoring master_playbook.yml --limit ComputeNodes > computenodes_log.json - ansible-playbook -i files/inventory.$STACKNAME --key-file ../gc_key.pem --skip-tags monitoring master_playbook.yml --limit ComputeNodes
tests: tests:
......
- hosts: 'DesktopNodes,ComputeNodes,LoginNodes,VisNodes' - hosts: 'DesktopNodes,ComputeNodes,LoginNodes,VisNodes'
gather_facts: True
vars_files: vars_files:
- vars/passwords.yml - vars/passwords.yml
- vars/names.yml - vars/names.yml
...@@ -12,6 +13,7 @@ ...@@ -12,6 +13,7 @@
tags: [ always ] tags: [ always ]
- hosts: 'DesktopNodes,ComputeNodes,LoginNodes' - hosts: 'DesktopNodes,ComputeNodes,LoginNodes'
gather_facts: False
vars_files: vars_files:
- vars/passwords.yml - vars/passwords.yml
- vars/names.yml - vars/names.yml
...@@ -30,17 +32,14 @@ ...@@ -30,17 +32,14 @@
- { role: set_semaphore_count, tags: [ semaphore ] } - { role: set_semaphore_count, tags: [ semaphore ] }
- hosts: 'VisNodes' - hosts: 'VisNodes'
gather_facts: False
vars_files: vars_files:
- vars/passwords.yml
- vars/names.yml
- vars/ldapConfig.yml
- vars/filesystems.yml
- vars/slurm.yml
- vars/vars.yml - vars/vars.yml
roles: roles:
- { role: gpu, tags: [ gpu ] } - { role: gpu, tags: [ gpu ] }
- hosts: 'DesktopNodes,ComputeNodes,LoginNodes' - hosts: 'DesktopNodes,ComputeNodes,LoginNodes'
gather_facts: False
vars_files: vars_files:
- vars/passwords.yml - vars/passwords.yml
- vars/names.yml - vars/names.yml
...@@ -52,6 +51,7 @@ ...@@ -52,6 +51,7 @@
- { role: slurm_config, tags: [slurm, slurm_config] } - { role: slurm_config, tags: [slurm, slurm_config] }
- hosts: 'DesktopNodes,ComputeNodes' - hosts: 'DesktopNodes,ComputeNodes'
gather_facts: False
vars_files: vars_files:
- vars/passwords.yml - vars/passwords.yml
- vars/names.yml - vars/names.yml
......
--- ---
- name: make sure out repo server is resolvable - name: make sure our repo server is resolvable
lineinfile: lineinfile:
dest: /etc/hosts path: /etc/hosts
line: "{{ reposerverip }} {{ reposervername }}" #this is duplicated in the role calculateEtcHosts line: "{{ reposerverip }} {{ reposervername }}"
owner: root owner: root
group: root group: root
become: True become: True
......
--- ---
- name: install dependencies - name: install dependencies
yum: name={{ item }} state=installed package:
name:
- libnfsidmap
- nfs-utils
- nfstest.noarch
state: installed
become: true become: true
with_items:
- libnfsidmap
- nfs-utils
- nfstest.noarch
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == "7" when: ansible_os_family == "RedHat" and ansible_distribution_major_version == "7"
- name: install dependencies - name: install dependencies
yum: name={{ item }} state=installed package:
name:
- nfs-utils-lib
state: installed
become: true become: true
with_items:
- nfs-utils-lib
when: ansible_os_family == "RedHat" and ansible_distribution_major_version < "7" when: ansible_os_family == "RedHat" and ansible_distribution_major_version < "7"
- name: install dependencies nfs-common ubuntu - name: install dependencies nfs-common ubuntu
......
--- ---
- - name: "Install nfs-utils"
name: "Install nfs-utils" package:
with_items: name:
- nfs-common - nfs-common
- nfs-kernel-server - nfs-kernel-server
apt: "name={{ item }} state=present" state: present
become: true become: true
--- ---
- - name: "Install nfs-utils"
name: "Install nfs-utils" package:
with_items: name:
- bind-utils - bind-utils
- nfs-utils - nfs-utils
yum: "name={{ item }} state=present" state: present
become: true become: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment