playbook working, tidying up task order
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
state: directory
|
||||
mode: '0700'
|
||||
|
||||
- name: autologin - "create {{ autologin_user }} .bashrc"
|
||||
- name: autologin - "create {{ autologin_user }} .bash_aliases"
|
||||
copy:
|
||||
#dest: "/home/{{ autologin_user }}/.bash_aliases"
|
||||
dest: "/home/{{ autologin_user }}/.bash_aliases"
|
||||
@ -39,6 +39,34 @@
|
||||
when: not quick_refresh | bool
|
||||
include_tasks: hello_there.yaml
|
||||
|
||||
- name: autologin - script permission settings
|
||||
when: not service_only | bool
|
||||
block:
|
||||
|
||||
- name: User setup - update permissions on smartctl 1
|
||||
shell: "chmod 755 /usr/sbin/smartctl"
|
||||
|
||||
- name: autologin - User setup - update permissions on smartctl 2
|
||||
shell: "chmod u+s /usr/sbin/smartctl"
|
||||
|
||||
- name: autologin - User setup - update permissions on fdisk
|
||||
shell: "chmod u+s /usr/sbin/fdisk"
|
||||
|
||||
- name: autologin - User setup - create symlink for smartctl
|
||||
ignore_errors: yes
|
||||
shell: "ln /usr/sbin/smartctl /usr/bin/smartctl"
|
||||
|
||||
- name: autologin - User setup - create symlink for fdisk
|
||||
ignore_errors: yes
|
||||
shell: "ln /usr/sbin/fdisk /usr/bin/fdisk"
|
||||
|
||||
- name: autologin - "User setup - allow {{ autologin_user }} to smartctl"
|
||||
copy:
|
||||
dest: /etc/sudoers.d/smartctl
|
||||
content: |
|
||||
{{ autologin_user }} ALL=(ALL) NOPASSWD: /usr/sbin/smartctl
|
||||
{{ autologin_user }} ALL=(ALL) NOPASSWD: /usr/sbin/fdisk
|
||||
|
||||
- name: autologin - Restart getty@tty1 service
|
||||
systemd:
|
||||
name: getty@tty1.service
|
||||
|
||||
Reference in New Issue
Block a user