# Creates ansible user with passwordless sudo # Needs root ssh access # ensures that login is possible # disables root user. - name: >- Pre-provision a bare host. Adds execution user. hosts: all vars: ansible_user: root # Put root password in here temporarily, just don't commit it # Root password will be cleared later ansible_password: root tasks: - import_tasks: tasks/preprovision.yml handlers: - import_tasks: handlers/main.yml