Skip to content

Commit

Permalink
chore: Remove ssd unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lafeychine committed Oct 22, 2023
1 parent 0253033 commit ee05062
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
6 changes: 3 additions & 3 deletions hosts
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ proxy.osmose.vm.openstreetmap.fr
cluster-free

[overpass-api]
osm147.openstreetmap.fr overpass_version="v0.7.54" ssd="/ssd"
osm148.openstreetmap.fr overpass_version="v0.7.54" ssd="/ssd"
osm147.openstreetmap.fr overpass_version="v0.7.54"
osm148.openstreetmap.fr overpass_version="v0.7.54"

[proxmox-backup]
osm26.openstreetmap.fr proxmox_backup_exclude="118 144 186 999" proxmox_backup_target="osm32.openstreetmap.fr:rpool/backups"
Expand All @@ -275,7 +275,7 @@ osm32.openstreetmap.fr proxmox_backup_host=true
osm13.openstreetmap.fr renderd_layers=true
osm166.openstreetmap.fr renderd_cyclosm=true
renderd.th3.vm.openstreetmap.fr renderd_layers=true
bzh202.vm.openstreetmap.fr renderd_bzh=true
bzh202.vm.openstreetmap.fr renderd_bzh=true

[wireguard]
proxy.ovh.vm.openstreetmap.fr wireguard_config=server
Expand Down
8 changes: 0 additions & 8 deletions roles/accounts/tasks/account.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@
loop_control:
loop_var: file

- name: Initialise {{ ssd }}/{{ user }} folder
file:
path: "{{ ssd }}/{{ user }}"
state: directory
group: "{{ user }}"
owner: "{{ user }}"
when: "service and ssd is defined"

- name: Copy SSH key of user {{ user }}
authorized_key:
user: "{{ user }}"
Expand Down
13 changes: 0 additions & 13 deletions shared/project-account.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
project_dir: "/data/project/{{ user }}"
work_dir: "/data/work/{{ user }}"

- name: set ssd_dir if there is ssd disk
set_fact:
ssd_dir: "{{ ssd }}/{{ user }}"
when: "ssd is defined"

- name: Check if user exists
action: shell /usr/bin/getent passwd {{ user }}
register: user_exist
Expand Down Expand Up @@ -48,14 +43,6 @@
- name: init /data/work/ path for ${user}
file: path={{ work_dir }} state=directory owner={{ user }} group={{ user }}

- name: create {{ ssd_dir }} dir
file:
path: "{{ ssd_dir }}"
state: directory
owner: "{{ user }}"
group: "{{ user }}"
when: "ssd_dir is defined"

- name: copy default config files
copy: force=no src="shared/files/default{{ item }}" dest="{{ project_dir }}/{{ item }}" owner={{ user }} group={{ user }}
with_items:
Expand Down

0 comments on commit ee05062

Please sign in to comment.