当前位置:网站首页>CE second operation
CE second operation
2022-06-29 23:21:00 【Hanhan|】
Create a shell The script is called adhoc.sh To run ad-hoc command . Configure... For each controlled node yum Warehouse .
Requirements are as follows :
Warehouse 1 :
Name: RH294_Base
Description: RH294 base software
Baseurl: http://content.example.com/rhel8.0/x86_64/dvd/BaseOS
Need to verify the imperial package GPG Signature
GPG key stay : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Enable this software repository
- Warehouse 2:
Name: RH294_Stream
Description : RH294 stream software
Baseurl: http://content.example.com/rhel8.0/x86_64/dvd/AppStream
Need to validate the package GPG Signature
GPG key stay : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Enable this software repository
Configuration ideas :
1. To configure yum What module should the source use
#ansible-doc -l | grep yum
yum Manages packa...
yum_repository Add or remove...
2. see yum_repository Module help
yum_repository:
name: epel
description: EPEL YUM repo
baseurl: https://download.fedoraproject.org/pub/epel/$releasever/$ba>
gpgcheck: no
edit shell Script
ansible dev -m yum_repository \
> -a 'name="RH294_Base" \
> description="RH294 base software" \
> baseurl=http://content.example.com/rhel8.0/x86_64/dvd/BaseOS \
> gpgcheck=yes \
> gpgkey=/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release \
> enabled=yes'
servera | CHANGED => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/libexec/platform-python"
},
"changed": true,
"repo": "RH294_Base",
"state": "present"
}
Execute the script
[[email protected] ansible]$ chmod +x adhoc.sh
[[email protected] ansible]$ ./adhoc.sh

边栏推荐
- 疫情下我离职一年,收入增长了10倍
- Shell -- text processing command
- 基金的估值,费用,会计核算
- [从零开始学习FPGA编程-51]:高阶篇 - 基于IP核的FPGA开发- 什么是FPGA IP核(软核、固核、硬核)与学习方法
- How to use filters in jfinal to monitor Druid for SQL execution?
- 深入解析kubernetes controller-runtime
- Wechat applet: big red festive UI guessing lantern riddles is also called guessing character riddles
- redis客户端
- C pointer advanced 1-- > character pointer, array pointer, pointer and array parameter transfer, function pointer
- Does Australia require that PVC plastic sheets comply with as/nzs 1530.3 with a flame spread index of 0?
猜你喜欢

Speech signal processing (II): phonation physiology, auditory physiology and auditory psychology

Regular expressions: characters (2)

分布式消息中间件设计

啃下大骨头——排序(一)

Vs cannot locate program input point to DLL

Free PDF to word software sharing, these software must know!

Intranet penetration (NC)

2022年PMP项目管理考试敏捷知识点(5)

2022 PMP project management examination agile knowledge points (5)

NRM explanation
随机推荐
Gracefully transform the SMS business module and start the strategic mode!
远程沟通高效的自我总结| 社区征文
STM32 basic knowledge points
Mysql database: use the show profile command to analyze performance
redis客户端
缓冲流练习
Leetcode 1385. 两个数组间的距离值
matplotlib matplotlib中plt.hist()参数解释
正则表达式:字符(2)
Become the only key
matplotlib matplotlib可视化之柱状图plt.bar()
微博系统中”微博评论“的高性能高可用计算架构
111. simple chat room 14: chat room client
80-Redis详解
Vs cannot locate program input point to DLL
Welcome the "top ten" of the Municipal Association for science and technology • pay tribute to Lu Yi, a scientific and technological worker: an explorer guarding the transmission security of the power
label問題排查:打不開標注好的圖像
大学里遗憾的事,希望你无怨也无悔
STM32基础知识点
C pointer advanced 2-- > function pointer array callback function simplifies calculator code, and implements qsort function based on callback function simulation