Compare commits

..

6 Commits

Author SHA1 Message Date
chatton 738a392685 corrected role name 2 years ago
chatton b193f40708 adding configure git role 2 years ago
chatton 1f2ff187a1 adding configure git role 2 years ago
chatton d1f3b1a953 adding configure git role 2 years ago
cianhatton 6c5ef27b29 add ansible install script 2 years ago
cianhatton c0177ad6ef add ansible install script 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

@ -1,4 +0,0 @@
---
- hosts: localhost
roles:
- install_packages
Loading…
Cancel
Save