partitioning and sudo bug fixes

master
Rasmus Rosengren 3 years ago
parent 129910fc27
commit f0f2fbde90
Signed by: rsrp
GPG Key ID: A13BC7BC4F81CF5F
  1. 5
      roles/cleanup/tasks/main.yml
  2. 8
      roles/create_user/tasks/main.yml
  3. 2
      roles/disk/egb/partitioning/defaults/main.yml
  4. 2
      roles/disk/egb/partitioning/tasks/format-parts.yml
  5. 2
      roles/disk/egbl/partitioning/tasks/format-parts.yml

@ -16,6 +16,11 @@
key: "{{ tmp_pub_key }}"
manage_dir: true
- name: Disable wheel to sudo without password.
file:
path: /etc/sudoers.d/00-tmp-sudo-full-access
state: absent
- name: Disable ssh server.
systemd:
name: sshd

@ -1,4 +1,12 @@
---
- name: Allow wheel to execute any command.
lineinfile:
path: /etc/sudeers
state: present
regexp: ^%wheel ALL=(ALL) ALL
line: "%wheel ALL=(ALL) ALL"
validate: visudo -cf %s
- name: Allow wheel to sudo without password.
copy:
dest: /etc/sudoers.d/00-tmp-sudo-full-access

@ -9,7 +9,7 @@ disk_egb_esp_size: "{{ 512 * 1024 * 1024 }}"
# +-- @home (to be mmounted at /home)
# +-- ...
#
disk_egb_btrfs_subvolumes: "{{ disk_egb_core_btrfs_subvolumes + disk_egb_priv_extra_btrfs_subvolumes }}"
disk_egb_btrfs_subvolumes: "{{ disk_egb_core_btrfs_subvolumes + disk_egb_extra_btrfs_subvolumes }}"
# These subvolumes should always be present. DO NOT OVERRIDE.
disk_egb_core_btrfs_subvolumes:

@ -4,12 +4,14 @@
device: "{{ disk_egb_esp_device_node }}"
state: present
type: vfat
force: true
- name: Format the root partition with btrfs.
filesystem:
device: "{{ disk_egb_root_device_node }}"
state: present
type: btrfs
force: true
- name: Mount the default subvolume.
mount:

@ -4,12 +4,14 @@
device: "{{ disk_egbl_esp_device_node }}"
state: present
type: vfat
force: true
- name: Format the luks container with btrfs.
filesystem:
device: /dev/mapper/{{ disk_egbl_luks_name }}
state: present
type: btrfs
force: true
- name: Mount the default subvolume.
mount:

Loading…
Cancel
Save