Compare commits
6 Commits
f4c7213a30
...
738a392685
| Author | SHA1 | Date |
|---|---|---|
|
|
738a392685 | 2 years ago |
|
|
b193f40708 | 2 years ago |
|
|
1f2ff187a1 | 2 years ago |
|
|
d1f3b1a953 | 2 years ago |
|
|
6c5ef27b29 | 2 years ago |
|
|
c0177ad6ef | 2 years ago |
@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: Setup Dev Environment
|
||||
hosts: localhost
|
||||
become: yes
|
||||
become_user: cianhatton
|
||||
roles:
|
||||
- configure_git
|
||||
@ -0,0 +1,36 @@
|
||||
---
|
||||
#- 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: Enforce using ssh instead of https with github.
|
||||
ansible.builtin.blockinfile:
|
||||
path: ~/.gitconfig
|
||||
append_newline: true
|
||||
prepend_newline: true
|
||||
block: |
|
||||
[url "ssh://git@github.com/"]
|
||||
insteadOf = https://github.com/
|
||||
|
||||
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo apt-get install ansible
|
||||
Loading…
Reference in New Issue