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 }}" key: "{{ tmp_pub_key }}"
manage_dir: true 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. - name: Disable ssh server.
systemd: systemd:
name: sshd 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. - name: Allow wheel to sudo without password.
copy: copy:
dest: /etc/sudoers.d/00-tmp-sudo-full-access 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) # +-- @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. # These subvolumes should always be present. DO NOT OVERRIDE.
disk_egb_core_btrfs_subvolumes: disk_egb_core_btrfs_subvolumes:

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

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

Loading…
Cancel
Save