Commit f38f3102 authored by Louis-Philippe Véronneau's avatar Louis-Philippe Véronneau

Merge branch 'lint-locale' into 'master'

Get linting passing again

See merge request !54
parents 795445fc 0971a2b3
Pipeline #30701 passed with stages
in 2 minutes and 35 seconds
......@@ -2,3 +2,5 @@ exclude_paths:
- roles/gridengine-config
- roles/gridengine-exec
- roles/gridengine-master
skip_list:
- '405'
......@@ -4,7 +4,7 @@ test:lint:
script:
- apt-get update && apt-get -y install python-pip
- pip install ansible-lint
- ansible-lint site.yml
- PYTHONIOENCODING=UTF-8 ansible-lint site.yml
test:role:apt:
script:
......
......@@ -23,10 +23,10 @@
- name: wait for reboot
when: ansible_connection != 'local'
local_action:
module: wait_for
wait_for:
host: "{{ inventory_hostname }}"
port: "{{ ansible_port | default(22) }}"
delay: 1
timeout: 300
delegate_to: localhost
become: false
......@@ -10,7 +10,7 @@
- name: manage storage ssh authorized_keys
authorized_key:
user: "{{ storage_username }}"
user: "{{ storage_username }}"
key: "{{ item }}"
with_items: "{{ public_keys_storage }}"
tags:
......
......@@ -15,7 +15,7 @@
- name: create pubdir
file:
name: /srv/{{nfs_server}}/sreview/web/public
name: /srv/{{ nfs_server }}/sreview/web/public
state: directory
owner: sreview
group: sreview
......
......@@ -38,7 +38,7 @@
- name: write preseed_local_flavor.cfg
template:
src: preseed_local.cfg.j2
dest: /srv/pxe/d-i/preseed_local_{{item.key}}.cfg
dest: /srv/pxe/d-i/preseed_local_{{ item.key }}.cfg
with_dict:
debian: "{{ debian_host }}"
ubuntu: "{{ ubuntu_host }}"
......@@ -54,7 +54,9 @@
- name: download debian netboot images
get_url:
url: http://{{ debian_host }}/debian/dists/{{ item[0] }}/main/installer-{{ item[1] }}/current/images/netboot/debian-installer/{{ item[1] }}/{{ item[2] }}
url: "http://{{ debian_host }}/debian/dists/{{ item[0] }}/main/\
installer-{{ item[1] }}/current/images/netboot/debian-installer/\
{{ item[1] }}/{{ item[2] }}"
dest: /srv/tftp/debian/{{ item[0] }}/{{ item[1] }}/{{ item[2] }}
mode: 0644
with_nested:
......@@ -64,7 +66,9 @@
- name: download ubuntu netboot images
get_url:
url: http://{{ ubuntu_host }}/ubuntu/dists/{{ item[0] }}/main/installer-{{ item[1] }}/current/images/netboot/ubuntu-installer/{{ item[1] }}/{{ item[2] }}
url: "http://{{ ubuntu_host }}/ubuntu/dists/{{ item[0] }}/main/\
installer-{{ item[1] }}/current/images/netboot/ubuntu-installer/\
{{ item[1] }}/{{ item[2] }}"
dest: /srv/tftp/ubuntu/{{ item[0] }}/{{ item[1] }}/{{ item[2] }}
mode: 0644
with_nested:
......@@ -76,7 +80,9 @@
# because the images from the release pocket will not work
- name: download ubuntu updated netboot images
get_url:
url: http://{{ ubuntu_host }}/ubuntu/dists/{{ item[0] }}-updates/main/installer-{{ item[1] }}/current/images/netboot/ubuntu-installer/{{ item[1] }}/{{ item[2] }}
url: "http://{{ ubuntu_host }}/ubuntu/dists/{{ item[0] }}-updates/main/\
installer-{{ item[1] }}/current/images/netboot/ubuntu-installer/\
{{ item[1] }}/{{ item[2] }}"
dest: /srv/tftp/ubuntu/{{ item[0] }}/{{ item[1] }}/{{ item[2] }}
mode: 0644
ignore_errors: true
......@@ -90,7 +96,8 @@
# (Also, we can only get this from one release)
- name: download ubuntu UEFI signed grub
get_url:
url: http://archive.ubuntu.com/ubuntu/dists/xenial/main/uefi/grub2-amd64/current/grubnetx64.efi.signed
url: "http://archive.ubuntu.com/ubuntu/dists/xenial/main/uefi/\
grub2-amd64/current/grubnetx64.efi.signed"
dest: /srv/tftp/boot/grubnetx64.efi.signed
mode: 0644
......
......@@ -21,7 +21,7 @@
authorized_key:
user: "{{ user_name }}"
key: "{{ item }}"
with_items: "{{public_keys_onsite}}"
with_items: "{{ public_keys_onsite }}"
when: "'onsite' in group_names"
tags:
- authorized_keys
......@@ -30,7 +30,7 @@
authorized_key:
user: "{{ user_name }}"
key: "{{ item }}"
with_items: "{{public_keys_offsite}}"
with_items: "{{ public_keys_offsite }}"
when: "'offsite' in group_names"
tags:
- authorized_keys
......@@ -50,7 +50,7 @@
authorized_key:
user: root
key: "{{ item }}"
with_items: "{{public_keys_root}}"
with_items: "{{ public_keys_root }}"
tags:
- authorized_keys
......
......@@ -2,7 +2,8 @@
- name: install blackmagic capture systemd units
template:
src: templates/videoteam-capture-blackmagic.service.j2
dest: /etc/systemd/user/videoteam-capture-blackmagic-{{ item.0 }}.service
dest: "/etc/systemd/user/\
videoteam-capture-blackmagic-{{ item.0 }}.service"
with_indexed_items: "{{ blackmagic_sources }}"
notify: reload-systemd
......@@ -10,7 +11,8 @@
file:
state: link
src: /etc/systemd/user/videoteam-capture-blackmagic-{{ item.0 }}.service
dest: /home/{{ user_name }}/.config/systemd/user/xlogin.target.wants/videoteam-capture-blackmagic-{{ item.0 }}.service
dest: "/home/{{ user_name }}/.config/systemd/user/xlogin.target.wants/\
videoteam-capture-blackmagic-{{ item.0 }}.service"
owner: "{{ user_name }}"
group: "{{ user_name }}"
with_indexed_items: "{{ blackmagic_sources }}"
......@@ -28,7 +28,8 @@
file:
state: link
src: "/etc/systemd/user/videoteam-voctolight-{{ item.camera|lower }}.service"
dest: "/home/{{ user_name }}/.config/systemd/user/xlogin.target.wants/videoteam-voctolight-{{ item.camera|lower }}.service"
dest: "/home/{{ user_name }}/.config/systemd/user/xlogin.target.wants/\
videoteam-voctolight-{{ item.camera|lower }}.service"
owner: "{{ user_name }}"
group: "{{ user_name }}"
with_items: "{{ voctolights }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment