Skip to content

Commit

Permalink
Disable iSCSI services on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
notthebee committed Aug 31, 2021
1 parent 01830c2 commit 0d41499
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ansible/group_vars/all/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ docker_dir: /opt/docker/data

dotfiles_repo: https://github.com/notthebee/dotfiles

#
# Apt mirrors
#
version: focal

# Automatically select the fastest mirror
apt_mirror: mirror://mirrors.ubuntu.com/mirrors.txt

apt_mirror: http://ftp.uni-mainz.de/ubuntu/


#
Expand Down
3 changes: 2 additions & 1 deletion ansible/roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
- name: Add user "{{ username }}" to group docker
user:
name: '{{ username }}'
groups: docker
groups:
- docker
append: yes

- name: Add Docker GPG apt Key
Expand Down
14 changes: 14 additions & 0 deletions ansible/roles/essential/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@
modification_time: preserve
access_time: preserve

- name: Remove cloud-config to avoid boot delay
apt:
name: cloud-config
state: absent

- name: Make sure ISCSID and Open-ISCSID services are disabled
service:
name: "{{ item }}"
state: stopped
enabled: no
with_items:
- iscsid
- open-iscsi

- name: Install the apt mirror list
template:
src: sources.list.j2
Expand Down

0 comments on commit 0d41499

Please sign in to comment.