You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
735 B
YAML

---
#- 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/