-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add task to set up autologin in systemd and add autologin to samsung-…
…expert script
- Loading branch information
1 parent
834e24a
commit fe5cbf9
Showing
3 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |