summaryrefslogtreecommitdiff
path: root/roles/tfe
diff options
context:
space:
mode:
authorLu Qiuwen <[email protected]>2019-09-17 17:26:01 +0800
committerLu Qiuwen <[email protected]>2019-09-17 17:26:01 +0800
commit27bc0430fb7f78249ce2eea707756f85134fe544 (patch)
treee1bf4a29325490ed793bea5fdabe73995f60449a /roles/tfe
parent196662fefc7c071c52470701bf851b26dfb6b9d6 (diff)
调整Ansible的结构,支持多环境部署。
Diffstat (limited to 'roles/tfe')
-rw-r--r--roles/tfe/files/tfe-4.1.0.d94c397-1.el7.x86_64.rpmbin3874636 -> 0 bytes
-rw-r--r--roles/tfe/files/tfe-4.1.1.48a5f7a-1.el7.x86_64.rpmbin0 -> 3876412 bytes
-rw-r--r--roles/tfe/tasks/main.yml23
3 files changed, 12 insertions, 11 deletions
diff --git a/roles/tfe/files/tfe-4.1.0.d94c397-1.el7.x86_64.rpm b/roles/tfe/files/tfe-4.1.0.d94c397-1.el7.x86_64.rpm
deleted file mode 100644
index 23618cd..0000000
--- a/roles/tfe/files/tfe-4.1.0.d94c397-1.el7.x86_64.rpm
+++ /dev/null
Binary files differ
diff --git a/roles/tfe/files/tfe-4.1.1.48a5f7a-1.el7.x86_64.rpm b/roles/tfe/files/tfe-4.1.1.48a5f7a-1.el7.x86_64.rpm
new file mode 100644
index 0000000..7d76a42
--- /dev/null
+++ b/roles/tfe/files/tfe-4.1.1.48a5f7a-1.el7.x86_64.rpm
Binary files differ
diff --git a/roles/tfe/tasks/main.yml b/roles/tfe/tasks/main.yml
index c1b7c85..91d3820 100644
--- a/roles/tfe/tasks/main.yml
+++ b/roles/tfe/tasks/main.yml
@@ -11,30 +11,31 @@
vars:
packages:
- /tmp/ansible_deploy/tfe-kmod-v1.0.3.20190828-1dkms.noarch.rpm
- - /tmp/ansible_deploy/tfe-4.1.0.d94c397-1.el7.x86_64.rpm
+ - /tmp/ansible_deploy/tfe-4.1.1.48a5f7a-1.el7.x86_64.rpm
- name: "template tfe-env config"
template:
- src: "{{ role_path }}/templates/tfe-env-config.j2"
+ path: "{{ role_path }}/templates/tfe-env-config.j2"
dest: /etc/sysconfig/tfe-env-config
- name: "template the tfe.conf"
template:
- src: "{{ role_path }}/templates/tfe.conf.j2"
- dest: /home/tsg/tfe/conf/tfe/tfe.conf
+ path: "{{ role_path }}/templates/tfe.conf.j2"
+ dest: /opt/tsg/tfe/conf/tfe/tfe.conf
- name: "template the pangu_pxy.conf"
template:
- src: "{{ role_path }}/templates/pangu_pxy.conf.j2"
- dest: /home/tsg/tfe/conf/pangu/pangu_pxy.conf
-
-- name: "start tfe-kmod"
- modprobe:
- name: tfe_kmod
- state: present
+ path: "{{ role_path }}/templates/pangu_pxy.conf.j2"
+ dest: /opt/tsg/tfe/conf/pangu/pangu_pxy.conf
- name: "enable tfe-env"
systemd:
name: tfe-env
enabled: yes
daemon_reload: yes
+
+- name: "enable tfe"
+ systemd:
+ name: tfe
+ enable: yes
+ daemon_reload: yes