ansible init system centos 6
【摘要】 ansible init system centos 6 init system ansible init system centos 6 init system--- - hosts: test tasks: - name: Import remi GPG rpm_key: "key={{ item }} state=present" wi...
ansible init system centos 6
init system
---
- hosts: test
tasks:
- name: Import remi GPG
rpm_key: "key={{ item }} state=present"
with_items:
- "http://rpms.famillecollet.com/RPM-GPG-KEY-remi"
- name: Install remi yum
command: "rpm -Uvh --force {{ item.href }} creates={{ item.creates }}"
with_items:
- href: "http://rpms.famillecollet.com/enterprise/remi-release-6.rpm"
creates: "/etc/yum.repos.d/remi.repo"
- name: install Epel yum
#command: "rpm -Uvh --force http://mirrors.aliyun.com/epel/epel-release-latest-6.noarch.rpm"
yum: name=epel-release state=present
- name: Close iptables
service: name=iptables state=stopped
- name: install htop
yum: name=htop state=present
- name: install vim
yum: name=vim state=present
- name: install zlib-devel
yum: name=zlib-devel state=present
- name: install bzip2-devel
yum: name=bzip2-devel state=present
- name: install openssl-devel
yum: name=openssl-devel state=present
- name: install ncurses-devel
yum: name=ncurses-devel state=present
【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)