Permalink
Browse files

ansible

  • Loading branch information...
chibiegg committed Oct 20, 2018
0 parents commit c351a44b5f76ba2d74ce0dff0bb48db731f16de7
@@ -0,0 +1,15 @@
# Team takedashi ISUCON8 Final
## Ansible
*with password*
```
ansible-playbook -u isucon -c paramiko -kKs -i hosts site.yml
```
*without password*
```
ansible-playbook -u isucon -c paramiko -i hosts site.yml
```
@@ -0,0 +1,60 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
# Translations
*.mo
*.pot
# Django stuff:
*.log
# Sphinx documentation
docs/_build/
# Editor
*.swp
.DS_Store
*.sqlite3
*.retry
@@ -0,0 +1 @@
ansible
@@ -0,0 +1,6 @@
---
- hosts: all
become: yes
roles:
- common
@@ -0,0 +1,4 @@
isucon8-01.ishikari-dc.jp
isucon8-02.ishikari-dc.jp
isucon8-03.ishikari-dc.jp
isucon8-04.ishikari-dc.jp
@@ -0,0 +1 @@
---
@@ -0,0 +1,11 @@
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLulxhZI+FQNrYMGjTLCDnsBnJRMm4URbL0LEmDqeLBf9T7RuSk35XWAYbweoBuKTAnmNEqj14o+V/f6qm+x2yE=
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCduougS3IXwhNUfrmdPhmz+u532jfPpCp4wH9KatA1tfX0wEFchaT+lpC2NEV7M5CX8PjfycLsAvve+MMaUZNSAyNMVCopaJJ/npZKrt9pg6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=
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBWu20TewcWlv1F25LWFrjSkkBvk6cgr7k6Gpfd5x4xv9wfMMOGy/22kBCQBaWHLO+3NNTGUIGCSId8fNAQDmQA=
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNL+reR1xiGR2L24kmmRPaQKZx2HMKGq4b9J606i558eNofbpbmDE7xHkpovkTqfculnfpi2K9m8gjuRQrVxLf0=
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCAU7vWOtC+fnqP20PJHZluqH3gyqchoa9HwJAyCDSO4M2jpbtKcpK/dhYffyOeEjk6/AuP3XH4caClzCplRBRk=
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5wWDY0ggBoKsdeiYU2dPegeKDxHuu1hP3STVFN0c00PhHvks0CAGSCDRKscjpTEk4Ct5rcchRxrzjzXWaFW34vcbJij8Wds2T36fbKW5pSolaRfDexo/FbstNHOhDUjN3RhxBevLmscUyuvF43/U1m0H2opTobcm9G/6XG/YzxX8XAbNO3ixXB0A/LuFUCOP77BW7RSeSo8BPtPdi2FzrMBpEYVjctQh353658eEstc9t3qd0BxnTv8ZkPgygYeiodKEqzfllH+u3KeinKnERIcKn/ahkHEspqvrkwoFzvAQt6sp+61AwxYcPEITlbEj8HOED7U1+mCHsyv8jRFk5 yosukes@r-c02r70n1fvh6.local
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNCdSB6cCYDjDls8Ym9xm5ZKXMn8AmYx5de1BGame/EAH2l/PV5fo11GawaE5B/WKia0zi67JoLhkkXkLkKdaEZS7ZmTvl/VwNCB00301UnDGsc54Oz40hav0ePI9/4lcSEOgjUbqJxPOqOQWBf28/xMqARMWO26bYmZG7RUpssuxCEUnTuxvevBK6ysLcIl13a8h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xs1wiv9Y6agoCgU/ee4DchbNUxoiomS/VTTlquhTkvTs1A0x/ed4qYXJ5gcy3Okh9Z3gP isucon@isucon8-takedashi
@@ -0,0 +1 @@
---
@@ -0,0 +1,23 @@
---
- name: set hostname
hostname: name="{{inventory_hostname_short}}"
tags: hostname
- name: set hostname
lineinfile: dest=/etc/hostname regexp=.* line={{inventory_hostname_short}}
tags: hostname
- file: path="/home/isucon/.ssh" state=directory owner="isucon" group="isucon" mode=0700
tags: users
- name: ssh files
copy: src="{{ item }}" dest="/home/isucon/.ssh/{{ item }}" owner="isucon" group="isucon" mode=0600
tags: users
with_items:
- authorized_keys
- id_rsa
- id_rsa.pub
- name: configure sudoers
template: src=00_common.sudo.j2 dest=/etc/sudoers.d/00_common owner=root group=root mode=0440
tags: users
@@ -0,0 +1 @@
isucon ALL=(ALL) NOPASSWD:ALL
@@ -0,0 +1,2 @@
---
- import_playbook: common.yml

0 comments on commit c351a44

Please sign in to comment.