Skip to content

Commit

Permalink
Add task to set up autologin in systemd and add autologin to samsung-…
Browse files Browse the repository at this point in the history
…expert script
  • Loading branch information
andre-gonzalez committed Nov 25, 2024
1 parent 834e24a commit fe5cbf9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions roles/light_workstation/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
ansible.builtin.include_tasks: tasks/systemd.yml
tags:
- systemd
- autologin

- name: Light Workstation | Include tasks from failock play
ansible.builtin.include_tasks: tasks/faillock.yml
Expand Down
11 changes: 11 additions & 0 deletions roles/light_workstation/tasks/systemd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,14 @@
line: ExecStart=-/sbin/agetty -n -o {{ lookup('env', 'USER') }} %I
backrefs: true
become: true

- name: Systemd | Set autologin
tags:
- never
- autologin
ansible.builtin.lineinfile:
path: /etc/systemd/system/getty.target.wants/[email protected]
regexp: ^ExecStart=.*
line: ExecStart=-/sbin/agetty -a frank - $TERM
backrefs: true
become: true
2 changes: 1 addition & 1 deletion scripts-ready-to-run/samusung-expert.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ansible-pull --vault-password-file ~/.vault_key --ask-become -t "samsung_expert" -U https://github.com/andre-gonzalez/ansible.git
ansible-pull --vault-password-file ~/.vault_key --ask-become -t "samsung_expert,autologin" -U https://github.com/andre-gonzalez/ansible.git

0 comments on commit fe5cbf9

Please sign in to comment.