Commit 5c1424bf authored by nanahira's avatar nanahira

updates

parent e5f7706d
...@@ -11,6 +11,9 @@ services: ...@@ -11,6 +11,9 @@ services:
coredns: coredns:
restart: always restart: always
image: coredns/coredns image: coredns/coredns
ports:
- '54:54'
- '54:54/udp'
volumes: volumes:
- ./Corefile:/Corefile:ro - ./Corefile:/Corefile:ro
......
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
- /sys/devices/system/cpu/cpufreq/ - /sys/devices/system/cpu/cpufreq/
file_type: directory file_type: directory
register: freq_list register: freq_list
- name: cpufreq performance - name: cpufreq
become: true become: true
copy: copy:
content: performance content: '{{cpupower}}'
dest: '{{item.path}}/scaling_governor' dest: '{{item.path}}/scaling_governor'
unsafe_writes: true unsafe_writes: true
with_items: '{{freq_list.files}}' with_items: '{{freq_list.files}}'
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
apt: apt:
update_cache: true update_cache: true
state: latest state: latest
name: wget,git,build-essential,libreadline-dev,libsqlite3-dev,libevent-dev,redis-server,p7zip-full name: wget,git,build-essential,libreadline-dev,libsqlite3-dev,libevent-dev,redis-server,p7zip-full,liblua5.3-dev
when: "ansible_os_family == 'Debian'" when: "ansible_os_family == 'Debian'"
- name: epel 7 - name: epel 7
become: true become: true
......
---
- hosts: plus
remote_user: root
tasks:
- name: get dockerfile
synchronize:
src: ~/test/nginx-plus/
dest: '{{path}}/nginx-plus'
- name: replace docker-compose
lineinfile:
path: '{{path}}/docker-compose.yml'
regexp: '^([ \t]*)image: nginx.*$'
line: '\1build: ./nginx-plus'
backrefs: true
- name: docker-compose up -d
docker_compose:
project_src: '{{path}}'
build: true
services:
- nginx
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment