Skip to content

Commit 4cb748e

Browse files
committed
Troubleshooting: revert all ansible linting
1 parent 8d3261f commit 4cb748e

File tree

246 files changed

+2271
-2640
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+2271
-2640
lines changed

ansible/adhoc/backup-keytabs.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
---
21
# Use ONE of the following tags on this playbook:
32
# - retrieve: copies keytabs out of the state volume to the environment
43
# - deploy: copies keytabs from the environment to the state volume
54

65
- hosts: freeipa_client
7-
become: true
8-
gather_facts: false
6+
become: yes
7+
gather_facts: no
98
tasks:
10-
- ansible.builtin.import_role:
9+
- import_role:
1110
name: freeipa
1211
tasks_from: backup-keytabs.yml

ansible/adhoc/cudatests.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
---
21
- hosts: cuda
3-
become: true
4-
gather_facts: true
2+
become: yes
3+
gather_facts: yes
54
tags: cuda_samples
65
tasks:
7-
- ansible.builtin.import_role:
6+
- import_role:
87
name: cuda
98
tasks_from: samples.yml

ansible/adhoc/deploy-pulp.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
---
21
# Usage: ansible-playbook ansible/adhoc/deploy-pulp.yml -e "pulp_server=<pulp server hostname>"
32

43
- name: Add temporary pulp server host
54
hosts: localhost
65
tasks:
7-
- ansible.builtin.add_host:
8-
name: "{{ pulp_server }}"
9-
group: "_pulp_host"
6+
- ansible.builtin.add_host:
7+
name: "{{ pulp_server }}"
8+
group: "_pulp_host"
109

1110
- name: Install pulp on server and add to config
12-
become: true
11+
become: yes
1312
hosts: _pulp_host
1413
tasks:
15-
- name: Install pulp
16-
ansible.builtin.include_role:
17-
name: pulp_site
18-
tasks_from: install.yml
19-
public: true
14+
- name: Install pulp
15+
ansible.builtin.include_role:
16+
name: pulp_site
17+
tasks_from: install.yml
18+
public: true
2019

21-
- name: Print Pulp endpoint
22-
become: false
23-
ansible.builtin.debug:
24-
msg: |
25-
Server configured, override 'appliances_pulp_url' with
26-
appliances_pulp_url: "http://{{ pulp_server }}:{{ pulp_site_port }}"
27-
in your environments
20+
- name: Print Pulp endpoint
21+
become: no
22+
debug:
23+
msg: |
24+
Server configured, override 'appliances_pulp_url' with
25+
appliances_pulp_url: "http://{{ pulp_server }}:{{ pulp_site_port }}"
26+
in your environments
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
2+
23
- name: Generate passwords.yml
34
hosts: localhost
45
gather_facts: false
56
tasks:
67
- name: Include password generation role
7-
ansible.builtin.include_role:
8-
name: passwords
8+
include_role:
9+
name: passwords

ansible/adhoc/hpctests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
# Relies on installed packages in appliance defaults - see openhpc variables.
44

55
---
6+
67
- hosts: hpctests[0] # TODO: might want to make which node is used selectable?
78
become: false
89
gather_facts: false
910
tasks:
10-
- ansible.builtin.import_role:
11+
- import_role:
1112
name: hpctests

ansible/adhoc/rebuild-via-slurm.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
# Rebuild compute nodes via slurm.
32
# Nodes will be rebuilt if `image_id` in inventory is different to the
43
# currently-provisioned image. Otherwise they are rebooted.
@@ -10,9 +9,9 @@
109

1110
- hosts: login
1211
run_once: true
13-
gather_facts: false
12+
gather_facts: no
1413
tasks:
1514
- name: Run slurm-controlled rebuild
16-
ansible.builtin.import_role:
15+
import_role:
1716
name: rebuild
1817
tasks_from: rebuild.yml

ansible/adhoc/rebuild.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
1-
---
21
# Rebuild hosts with a specified image from OpenStack.
3-
#
2+
#
43
# Use ansible's -v output to see output.
54
# Use --limit to control which hosts to rebuild (either specific hosts or the <cluster_name>_<partition_name> groups defining partitions).
65
# Optionally, supply `-e rebuild_image=<image_name_or_id>` to define a specific image, otherwise the current image is reused.
76
#
8-
# NOTE: If a hostvar `instance_id` is defined this is used to select hosts.
9-
# Otherwise the hostname is used and this must be unique, which may not be the case e.g. if using identically-named staging and production hosts.
7+
# NOTE: If a hostvar `instance_id` is defined this is used to select hosts. Otherwise the hostname is used and this must be unique, which may not be the case e.g. if using identically-named staging and production hosts.
108
#
119
# Example:
1210
# ansible-playbook -v --limit ohpc_compute ansible/adhoc/rebuild.yml -e rebuild_image=openhpc_v2.3
1311

1412
- hosts: cluster
15-
become: false
16-
gather_facts: false
13+
become: no
14+
gather_facts: no
1715
tasks:
18-
# yamllint disable-line rule:line-length
19-
- ansible.builtin.command: "openstack server rebuild {{ instance_id | default(inventory_hostname) }}{% if rebuild_image is defined %} --image {{ rebuild_image }}{% endif %}"
16+
- command: "openstack server rebuild {{ instance_id | default(inventory_hostname) }}{% if rebuild_image is defined %} --image {{ rebuild_image }}{% endif %}"
2017
delegate_to: localhost
21-
changed_when: false
22-
- ansible.builtin.wait_for_connection:
18+
- wait_for_connection:
2319
delay: 60
2420
timeout: 600
21+

ansible/adhoc/restart-slurm.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
1-
---
21
# Restart all slurm daemons e.g. after changing configuration. Note that:
32
# - `scontrol reconfigure` will handle most reconfiguration - see https://slurm.schedmd.com/scontrol.html#OPT_reconfigure
43
# for which options need a restart
54
# - Adding or removing nodes by changing the `openhpc_` configuration and rerunning ansible/site.yml will automatically
65
# restart daemons as required.
76

87
- hosts: compute,login
9-
become: true
10-
gather_facts: false
8+
become: yes
9+
gather_facts: no
1110
tasks:
12-
- ansible.builtin.service:
11+
- service:
1312
name: slurmd
1413
state: stopped
1514

1615
- hosts: control
17-
become: true
18-
gather_facts: false
16+
become: yes
17+
gather_facts: no
1918
tasks:
20-
- ansible.builtin.service:
19+
- service:
2120
name: slurmctld
2221
state: restarted
2322

2423
- hosts: compute,login
25-
become: true
26-
gather_facts: false
24+
become: yes
25+
gather_facts: no
2726
tasks:
28-
- ansible.builtin.service:
27+
- service:
2928
name: slurmd
3029
state: started

ansible/adhoc/sync-pulp.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
- hosts: localhost
32
tasks:
43
- ansible.builtin.include_role:

ansible/adhoc/update-packages.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
---
21
- hosts: update
3-
become: true
2+
become: yes
43
gather_facts: false
54
tasks:
65
- name: Update selected packages
7-
ansible.builtin.dnf:
6+
yum:
87
name: "{{ update_name }}"
98
state: "{{ update_state }}"
109
exclude: "{{ update_exclude }}"
1110
disablerepo: "{{ update_disablerepo }}"
1211
register: updates
1312
- name: Log updated packages
14-
ansible.builtin.copy:
13+
copy:
1514
content: "{{ updates.results | join('\n') }}"
1615
dest: "{{ update_log_path }}"
17-
mode: "0644"
1816
delegate_to: localhost
19-
- ansible.builtin.debug:
17+
- debug:
2018
msg: "{{ updates.results | length }} changes to packages - see {{ update_log_path }} for details"

0 commit comments

Comments
 (0)