Automated changes from linter ;P
This commit is contained in:
parent
44b73a216f
commit
f7f04e7a41
65 changed files with 392 additions and 324 deletions
|
@ -1,5 +1,7 @@
|
|||
---
|
||||
- import_tasks: ../../common/handlers/main.yaml
|
||||
- ansible.builtin.import_tasks:
|
||||
file: ../../common/handlers/main.yaml
|
||||
|
||||
- name: console_setup
|
||||
command: dpkg-reconfigure console-setup --frontend noninteractive
|
||||
ansible.builtin.command:
|
||||
cmd: dpkg-reconfigure console-setup --frontend noninteractive
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
tags: bank_terminal_client
|
||||
block:
|
||||
- name: Add user
|
||||
user:
|
||||
ansible.builtin.user:
|
||||
name: bank-terminal
|
||||
home: /home/{{ bank_terminal_user }}
|
||||
shell: /home/{{ bank_terminal_user }}/login
|
||||
|
@ -11,14 +11,15 @@
|
|||
ssh_key_type: ed25519
|
||||
|
||||
- name: Locate agetty
|
||||
command: which agetty
|
||||
ansible.builtin.command:
|
||||
cmd: which agetty
|
||||
register: agetty_location_cmd
|
||||
|
||||
- name: Set agetty var
|
||||
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
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: login
|
||||
dest: /home/{{ bank_terminal_user }}/login
|
||||
owner: bank-terminal
|
||||
|
@ -26,7 +27,7 @@
|
|||
mode: 0755
|
||||
|
||||
- name: Autologin User
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: tty_autologin.conf
|
||||
dest: /etc/systemd/system/getty@tty1.service.d/override.conf
|
||||
owner: root
|
||||
|
@ -35,13 +36,13 @@
|
|||
notify: daemon_reload
|
||||
|
||||
- name: Clear MOTD
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
content: ""
|
||||
dest: /etc/motd
|
||||
|
||||
# Set console font so the Revbank QR codes are rendered correctly.
|
||||
- name: Console setup
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/default/console-setup
|
||||
line: '{{ item.k }}="{{ item.v }}"'
|
||||
regexp: "^#?{{ item.k }}"
|
||||
|
@ -54,17 +55,17 @@
|
|||
notify: console_setup
|
||||
|
||||
- name: Console Setup Management Note
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/default/console-setup
|
||||
line: '# Managed by Ansible'
|
||||
insertafter: "CONFIGURATION FILE"
|
||||
|
||||
- name: Read pubkey
|
||||
command: /bin/cat /home/{{ bank_terminal_user }}/.ssh/id_ed25519.pub
|
||||
ansible.builtin.command: /bin/cat /home/{{ bank_terminal_user }}/.ssh/id_ed25519.pub
|
||||
changed_when: no
|
||||
register: pubkey
|
||||
|
||||
- debug:
|
||||
- ansible.builtin.debug:
|
||||
msg:
|
||||
- Please ensure that the pubkey below is is authorized on the bank server.
|
||||
- "{{ pubkey.stdout_lines | join }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue