日時: | 2023-12-03 |
---|---|
作: | voluntas |
バージョン: | 2023.1 |
url: | https://voluntas.github.io |
この記事が良いと思ったらこの記事に Star をお願いします
#!/bin/bash | |
git config --global core.editor 'vim -c "set fenc=utf-8"' | |
ls ~/.config/git 2>/dev/null >/dev/null || mkdir -p ~/.config/git | |
cat << __EOF__ > ~/.config/git/gitignore | |
.idea | |
tags | |
TAGS |
# use the latest ubuntu environment (18.04) available on travis | |
dist: bionic | |
language: go | |
# You don't need to test on very old versions of the Go compiler. It's the user's | |
# responsibility to keep their compiler up to date. | |
go: | |
- 1.16.x |
日時: | 2023-12-03 |
---|---|
作: | voluntas |
バージョン: | 2023.1 |
url: | https://voluntas.github.io |
この記事が良いと思ったらこの記事に Star をお願いします
# Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source. | |
# Will include all hosts the playbook is run on. | |
# Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html | |
- name: "Build hosts file" | |
lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present | |
when: hostvars[item].ansible_default_ipv4.address is defined | |
with_items: groups['all'] |
# We need the latest epel-release for a RHEL/Centos specific cloud-init | |
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
rpm -Uvh epel-release-6-8.noarch.rpm | |
# After this finishes you can build an AMI that will process the user data | |
# with cloud-init. You may also be interested in taking a look at the config | |
# file at /etc/cloud/cloud.cfg | |
yum install cloud-init |