June 2018
Beginner
578 pages
13h 39m
English
The final part of the common role is to add a user called lamp and add our public key to the user. Before we look at the task, let's look at the variable we will be using, which is defined in roles/common/defaults/main.yml:
users: - { name: "lamp", group: "lamp", state: "present", key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}" }
As you can see, we are providing three bits of information:
The task in the roles/common/tasks/main.yml file for creating ...
Read now
Unlock full access