--- - name: Install required packages apt: state: present name: - git - httpie - man - thefuck - tmux - zsh - name: Configure user account {{ username }} user: name: "{{ username }}" home: "/home/{{ username }}" create_home: yes move_home: yes shell: /bin/zsh groups: - "{{ sudo | ternary('sudo', '') }}" append: yes password: "{{ password | password_hash('sha512', LOCAL_SALT) }}" update_password: on_create generate_ssh_key: yes ssh_key_type: ed25519 ssh_key_file: .ssh/id_ed25519 ssh_key_passphrase: "{{ password }}" ssh_key_comment: "{{ username }}@{{ ansible_fqdn }} {{ ansible_date_time.date }}" - name: Download oh-my-zsh for user {{ username }} become_user: "{{ username }}" git: repo: https://github.com/robbyrussell/oh-my-zsh.git dest: ~/.oh-my-zsh - name: Configure oh-my-zsh become_user: "{{ username }}" template: src: template.zshrc dest: ~/.zshrc force: no # TODO tmux configuration # TODO vim configuration