Changeset 14693 for main/waeup-ansible
- Timestamp:
- 14 Jun 2017, 14:29:20 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup-ansible/README.rst
r14324 r14693 100 100 to see, whether setup is fine (dry run) and:: 101 101 102 $ ansible-playboo j-i hosts bootstrap.yml102 $ ansible-playbook -i hosts bootstrap.yml 103 103 104 104 to actually perform the changes. 105 106 6) In `hosts` move the host we handle from ``[yet-untouched]`` over to 107 ``[bootstapped]``. 108 109 110 Setup 111 ===== 112 113 After bootstrapping, there should be a user account we can use. 114 115 1) Create a local SSH key to connect to the new server and copy it over:: 116 117 $ ssh-keygen -t ed25519 -C "uli@foo to myremote" -f ~/.ssh/id_myremote 118 119 Where ``myremote`` is normally one of h1, h2, ...., hN. Then:: 120 121 $ ssh-copy-id -i ~/.ssh/id_myremote user@myremote.waeup.org 122 123 and eventually edit ``~/.ssh/config`` to register your new key. 124 If you are out for adventure, do not create a new key but use the one you 125 use on all other machines as well. This is, of course, not recommended. 126 127 2) Update the entry of the handled host in the local `hosts` inventory: 128 - Remove ``ansible_user=root`` 129 - Remove ``ansible_ssh_pass``. 130 - Set ``ansible_sudo_pass`` to the password of the user you connect as. 131 132 3) Update the server:: 133 134 $ ansible -i hosts hmyremote.waeup.org -b -m apt -a "upgrade=safe update_cache=yes" 135 136 This way we can ensure that your SSH setup works correctly. 137 138 4) Run setup.py:: 139 140 $ ansible-playbook -i hosts -l hmyremote.waeup.org -C setup.yml 141 142 (for a dry run) and:: 143 144 $ ansible-playbook -i hosts -l hmyremote.waeup.org setup.yml 145 146 for the real run. 105 147 106 148
Note: See TracChangeset for help on using the changeset viewer.