Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
SequeI committed Dec 2, 2024
1 parent 52c26d3 commit cae303f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions molecule/testing_user_setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@
mode: "0700"
owner: "{{ item.user }}"

#- name: Configure SSH access for new user
#ansible.builtin.copy:
#src: "{{ molecule_ephemeral_directory }}/id_rsa.pub"
#dest: "/home/{{ item.user }}/.ssh/authorized_keys"
#mode: "0600"
#owner: "{{ item.user }}"

- name: Edit SSH config to disallow root login
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: '^(#*)?PermitRootLogin'
line: "PermitRootLogin no"
- name: Configure SSH access for new user
ansible.builtin.copy:
src: "{{ molecule_ephemeral_directory }}/id_rsa.pub"
dest: "/home/{{ item.user }}/.ssh/authorized_keys"
mode: "0600"
owner: "{{ item.user }}"

#- name: Edit SSH config to disallow root login
#ansible.builtin.lineinfile:
#path: /etc/ssh/sshd_config
#regexp: '^(#*)?PermitRootLogin'
#line: "PermitRootLogin no"

- name: Restart SSH
ansible.builtin.service:
Expand Down

0 comments on commit cae303f

Please sign in to comment.