--- #- name: Update Packages # ansible.builtin.apt: # upgrade: dist # cache_valid_time: 3600 # #- name: Install gh package # ansible.builtin.apt: # pkg: # - gh - git_config: name: core.editor scope: global value: vim - git_config: name: user.name scope: global value: chatton - git_config: name: user.email scope: global value: github.qpeyb@simplelogin.fr - name: Insert/Update "Match User" configuration block in /etc/ssh/sshd_config prepending and appending a new line ansible.builtin.blockinfile: path: ~/.gitconfig append_newline: true prepend_newline: true block: | [url "ssh://git@github.com/"] insteadOf = https://github.com/