forked from bitlair/ansible
Linting
This commit is contained in:
parent
d0cd352b4a
commit
77c1732623
31 changed files with 127 additions and 149 deletions
|
@ -4,11 +4,11 @@
|
|||
block:
|
||||
- name: Add user
|
||||
ansible.builtin.user:
|
||||
name: bank-terminal
|
||||
home: /home/{{ bank_terminal_user }}
|
||||
shell: /home/{{ bank_terminal_user }}/login
|
||||
name: "bank-terminal"
|
||||
home: "/home/{{ bank_terminal_user }}"
|
||||
shell: "/home/{{ bank_terminal_user }}/login"
|
||||
generate_ssh_key: yes
|
||||
ssh_key_type: ed25519
|
||||
ssh_key_type: "ed25519"
|
||||
|
||||
- name: Locate agetty
|
||||
ansible.builtin.command:
|
||||
|
@ -16,34 +16,35 @@
|
|||
register: agetty_location_cmd
|
||||
|
||||
- name: Set agetty var
|
||||
ansible.builtin.set_fact: agetty_location="{{ agetty_location_cmd.stdout_lines | join }}"
|
||||
ansible.builtin.set_fact:
|
||||
agetty_location: "{{ agetty_location_cmd.stdout_lines | join }}"
|
||||
|
||||
- name: Install login script
|
||||
ansible.builtin.template:
|
||||
src: login
|
||||
dest: /home/{{ bank_terminal_user }}/login
|
||||
owner: bank-terminal
|
||||
group: bank-terminal
|
||||
mode: 0755
|
||||
src: "login"
|
||||
dest: "/home/{{ bank_terminal_user }}/login"
|
||||
owner: "bank-terminal"
|
||||
group: "bank-terminal"
|
||||
mode: "0755"
|
||||
|
||||
- name: Autologin User
|
||||
ansible.builtin.template:
|
||||
src: tty_autologin.conf
|
||||
dest: /etc/systemd/system/getty@tty1.service.d/override.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
src: "tty_autologin.conf"
|
||||
dest: "/etc/systemd/system/getty@tty1.service.d/override.conf"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
notify: daemon_reload
|
||||
|
||||
- name: Clear MOTD
|
||||
ansible.builtin.copy:
|
||||
content: ""
|
||||
dest: /etc/motd
|
||||
dest: "/etc/motd"
|
||||
|
||||
# Set console font so the Revbank QR codes are rendered correctly.
|
||||
- name: Console setup
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/default/console-setup
|
||||
path: "/etc/default/console-setup"
|
||||
line: '{{ item.k }}="{{ item.v }}"'
|
||||
regexp: "^#?{{ item.k }}"
|
||||
with_items:
|
||||
|
@ -56,8 +57,8 @@
|
|||
|
||||
- name: Console Setup Management Note
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/default/console-setup
|
||||
line: '# Managed by Ansible'
|
||||
path: "/etc/default/console-setup"
|
||||
line: "# Managed by Ansible"
|
||||
insertafter: "CONFIGURATION FILE"
|
||||
|
||||
- name: Read pubkey
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue