Commit 5c1424bf authored by nanahira's avatar nanahira

updates

parent e5f7706d
......@@ -11,6 +11,9 @@ services:
coredns:
restart: always
image: coredns/coredns
ports:
- '54:54'
- '54:54/udp'
volumes:
- ./Corefile:/Corefile:ro
......
......@@ -12,10 +12,10 @@
- /sys/devices/system/cpu/cpufreq/
file_type: directory
register: freq_list
- name: cpufreq performance
- name: cpufreq
become: true
copy:
content: performance
content: '{{cpupower}}'
dest: '{{item.path}}/scaling_governor'
unsafe_writes: true
with_items: '{{freq_list.files}}'
......
......@@ -17,7 +17,7 @@
apt:
update_cache: true
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'"
- name: epel 7
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