diff --git a/README.md b/README.md index a169b5c..5c0a74d 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,16 @@ ## How to Ansible allows to duplicate this Desktop Environment over multiple hosts with specific configuration (dualscreen, packages...). + Fork Me! Please look at ``roles/*/README.md`` if exists for specific hosts configuration. +/!\ Use as is, you will add my SSH key in your authorized_keys /!\ +To disable that role, please run : +``` +cd dotfiles +sed -i 's/^\(.*authorized_keys.*\)$/#\1/' install.yml +``` + ## Test VMs|Containers Please check ``vagrant/*/README.md`` and ``docker/*/README.md`` diff --git a/install.yml b/install.yml index 6c684ef..245a623 100644 --- a/install.yml +++ b/install.yml @@ -17,6 +17,7 @@ - { role: vim, tags: vim } - { role: terminfo, tags: terminfo } - { role: screen, tags: screen } + - { role: authorized_keys, tags: authorized_keys } - hosts: all tags: [ 'desktop', 'laptop' ] diff --git a/roles/authorized_keys/files/id_rsa.pub b/roles/authorized_keys/files/id_rsa.pub new file mode 100755 index 0000000..6f5c311 --- /dev/null +++ b/roles/authorized_keys/files/id_rsa.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXU3reeqhLxTQ3W/cScB7fTgpvlnjDIb50XHKYHcS968afhloPfALcakNAT9KtlmkW/pV+ePqn3/Yff4ksJJ0gkRJsqY4owukvBhqK5posA2dWmG4IFAgbh9s02a+HCjgUWaCLuwRlSXh3nZ71VNDUFgiRv+qg2Fd4ZCtwm6JvMKoxto5QO6mlqM0Br7+ma9U6PjYxIj1yOvwP4SGH2nqpFw0iLTTHS3mD4zj+9MbNm7uJine7bVJg8HcHN/qnkuvQf6PhNOq980+ja3WwqV3e9tbMR+q/pBg/iwfgUhK7Y8B+2mg0XRkaKQVoIt+x1GhClo8+biE6bOhTCwXHe185 jk diff --git a/roles/authorized_keys/tasks/main.yml b/roles/authorized_keys/tasks/main.yml new file mode 100644 index 0000000..e7b6eeb --- /dev/null +++ b/roles/authorized_keys/tasks/main.yml @@ -0,0 +1,8 @@ +--- +- name: authorize eoli3n key + authorized_key: + user: "{{ ansible_user_id }}" + state: present + key: "{{ item }}" + with_file: + - files/id_rsa.pub