Skip to content
Snippets Groups Projects
Commit 09f0f8a5 authored by nimrod's avatar nimrod
Browse files

- Move the SSH server installation and startup tasks to pre_tasks (the role...

- Move the SSH server installation and startup tasks to pre_tasks (the role modifies the sshd config, so it needs to be there).
parent 60834245
No related branches found
No related tags found
No related merge requests found
......@@ -24,9 +24,7 @@
password: '{{ "$2b$08$tQ5R9gYozyT4axTcKuBieeeVbgCXzZkDuTP4CL7HhQ9kvXRztxsCW" if ansible_os_family == "OpenBSD" else "$6$VWrYt43IIuVoA.G$I3UacUhyEz58NAJgelWJr0EfTmqNGxOqatfYxBH0wzCIZLcsjZ1V0/AAibzTu6KjdsUFSC3Mmjjr0cWHcV8401" }}'
groups:
- people
roles:
- role: users
post_tasks: # For testing purposes
pre_tasks:
- name: APT Install SSH server
when: ansible_pkg_mgr == 'apt'
apt:
......@@ -38,7 +36,9 @@
service:
name: ssh
state: started
roles:
- role: users
post_tasks: # For testing purposes
- name: Create .ssh directory
file:
path: '{{ ansible_user_dir }}/.ssh'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment