From 955d4a31a0b0339f646d2cf6303b94e7a0e1bb6e 2015-09-22 15:57:13 From: Branko Majic Date: 2015-09-22 15:57:13 Subject: [PATCH] MAR-19: Make the ansible_key var for bootstrap role optional. --- diff --git a/docs/rolereference.rst b/docs/rolereference.rst index 2053ffd5627e95ab4f4eca751309fb59c96009a1..2ed7099b97950d3c53e90629ea0f64306d48141c 100644 --- a/docs/rolereference.rst +++ b/docs/rolereference.rst @@ -187,7 +187,7 @@ The role implements the following: Parameters ~~~~~~~~~~ -**ansible_key** (string, mandatory) +**ansible_key** (string, optional, ``{{ lookup('file', '~/.ssh/id_rsa.pub') }}``) SSH public key that should be deployed to authorized_keys truststore for operating system user ``ansible``. diff --git a/roles/bootstrap/defaults/main.yml b/roles/bootstrap/defaults/main.yml new file mode 100644 index 0000000000000000000000000000000000000000..2471d14f34d05c9702c365c98d09293cf445c8cc --- /dev/null +++ b/roles/bootstrap/defaults/main.yml @@ -0,0 +1,3 @@ +--- + +ansible_key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}" \ No newline at end of file