腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
可能的集合用法
ansible
我正在尝试使用
Ansible
Collection,例如
nginx
one。目录树结构如下所示: ├──
ansible
_collections │ └──
nginx
_core gather_facts: no - name: test name: nginxinc.
nginx
_core.
nginx</
浏览 11
提问于2020-11-19
得票数 1
回答已采纳
1
回答
创建
ansible
playbook来
安装
vnc
ansible
、
vnc
您将如何编写一本
ansible
攻略来在远程服务器上
安装
vnc?我正在使用ubuntu 18.04,我已经
安装
了
ansible
,并且已经运行了一个剧本来
安装
nginx
,并且它成功地工作了 --- become: true
ansible
_become_pass:"password" - name : insta
浏览 25
提问于2020-04-07
得票数 0
2
回答
如何使用
ansible
在CentOS 6.5上
安装
nginx
nginx
、
ansible
、
centos6.5
我刚开始使用
ansible
,我正在尝试设置一个简单的Hello world攻略。到目前为止,我所有的东西都可以相互通信了,但是我似乎不能自动
安装
nginx
。我已经尝试了几个变体,但是我似乎找不到任何关于yum使用
ansible
安装
nginx
的文档。 - name: Install <e
浏览 3
提问于2015-03-28
得票数 1
2
回答
重新启动时,使用https站点将cert密码传递给
Nginx
。
nginx
、
https
、
openssl
、
ssl-certificate
、
ansible
我通过配置了
nginx
安装
和配置(以及站点的
安装
SSL证书)。SSL证书在密码项下。在某些私有目录中存在存储解密证书和密钥的。如何在重新启动时通过
ansible
将密码传递给
nginx
(或openssl)?完美的情况如下:
Ansible
正在询问SSL密
浏览 4
提问于2015-10-12
得票数 30
回答已采纳
1
回答
如何通过
Ansible
在FreeBSD上
安装
Nginx
?
nginx
、
ansible
我尝试在FreeBSD 10上
安装
带有
Ansible
的
Nginx
,但是我有一个问题。当我试图从像这样的
Ansible
剧本
安装
Nginx
时 portinstall: name=
nginx
state=present 我得到了这个错误,因为
nginx
安装
时没有HTTP_REALIP模块。
nginx
:配置文件/usr/local/
浏览 3
提问于2016-03-23
得票数 0
1
回答
在单一的剧本中如何成为根用户和应用程序用户?
ansible
我需要设置一个应用程序,为此我需要将
Nginx
作为root
安装
,然后以不同的应用程序用户的身份运行另一个Java应用程序。条件是,我有一个拥有sudo的特权用户"priv_suer“,我作为这个用户运行剧本,因为我需要
安装
和配置
Nginx
。我提到了,唯一能找到的选项是"
ansible
_become_password“。 有人能帮我吗?
浏览 1
提问于2021-02-18
得票数 1
回答已采纳
6
回答
来自Bitbucket.org的
ansible
-galaxy和git克隆
git
、
ansible
、
bitbucket
、
ansible-galaxy
我使用
ansible
-galaxy (v2.0.0.2)通过requirements.yml文件在Bitbucket上
安装
了具有源代码的
ansible
roles。+
ansible
-galaxy -vvv install --force --role-file
ansible
/requirements.yml --roles-path ./
ansible
/roles Using /etc/
ansible
浏览 0
提问于2017-01-20
得票数 8
1
回答
如何将两个命令组合在一个任务中?
nginx
、
ansible
、
devops
因此,我的问题是,我想检查
nginx
是否
安装
在具有不同包管理器的两个不同的操作系统上。- name: Veryfying
nginx
installation # RedHat when:
ansible
_facts.pkg_mgrin ["yum","dnf","rpm"] #or (
ansible
_os_family == "RedHa
浏览 7
提问于2022-09-23
得票数 0
回答已采纳
1
回答
setup.yml失败,错误为"
ansible
/_distribution是未定义的“
openwhisk
我想用
ansible
安装
带有对接器的Openwhisk。但当我跑我知道这个错误:"openwhisk-server-cert.pem"):
浏览 12
提问于2020-10-25
得票数 0
2
回答
Ansible
-只在
Nginx
还没有出现时才
安装
它
ansible
我们正在增加一些额外的任务到我们现有的游戏手册,
安装
Nginx
。但是我们不希望每次都尝试
Nginx
安装
任务,我们只希望在它尚未
安装
时尝试它。如果
Nginx
已经存在,是否有一种方法可以跳过
安装
任务?- name: Install
nginx
name:
nginx
when:
Nginx
already present
浏览 4
提问于2022-05-24
得票数 0
1
回答
已删除
Ansible
-
nginx
包,但服务正在服务器上运行。
ansible
、
ansible-playbook
我在努力学习
Ansible
,但我有奇怪的事情。server" become: true - name: "Uninstall packages" name:
nginx
state: absent service: state: stoppedenabled: no
浏览 0
提问于2022-06-30
得票数 1
回答已采纳
1
回答
如何配置
nginx
,从网页浏览器访问使用
ansible
剧本?
nginx
、
ansible
、
ansible-playbook
我有一个可
安装
的剧本来
安装
nginx
。但是,当我输入ip地址时,我无法访问服务器。服务运转良好。--- hosts:
nginx
- name: Add epel-release repoyum: state: present yum: name:
浏览 0
提问于2018-12-20
得票数 0
1
回答
从webserver运行
ansible
来管理基础设施
nginx
、
php
、
php-fpm
、
ansible
、
user-permissions
我有
nginx
与php应用程序。我还在此服务器上
安装
了“
ansible
”和“复制的”播放本。我想做的是通过webapp运行“
ansible
”游戏。我想知道怎么做这个安全的方法。
nginx
在用户
Nginx
下运行,php在apache下运行,
ansible
有自己的用户。Php应用程序在/var/www/html/中,
ansible
剧本在/var/www/html/
ans
浏览 0
提问于2020-12-31
得票数 0
回答已采纳
2
回答
不可接受的yum模块-排除不能正常工作的参数
docker
、
nginx
、
ansible
、
yum
我正在尝试
安装
一个不包括
Nginx
和Docker的包列表,因为这些包需要特殊的处理,并且在任务完成后被
安装
在特定的角色中。 在尝试
安装
Nginx
时会出现错误(应该排除该错误)。See https://docs.
ansible
.com/
ansible
-core/2.13/reference_appendices/interpreter_discovery.html for moreinformation.&quo
浏览 18
提问于2022-10-13
得票数 1
回答已采纳
2
回答
Ansible
播放簿中开始/停止命令的约定
ansible
、
ansible-playbook
假设我有一个角色来
安装
和配置
Nginx
,这些任务是在roles/
nginx
/tasks/main.yml中定义的,并且是从./site.yml引用的,所以当我提供新的服务器时,它们总是运行。类似于这个例子:https://github.com/
ansible
/
ansible
-examples/tree/master/wordpress-
nginx
/roles/
浏览 0
提问于2017-08-24
得票数 1
回答已采纳
1
回答
用
Ansible
升级已
安装
的软件包的正确方法是什么?
nginx
、
ansible
、
ansible-handlers
让我们假设我有下一个简单的
Ansible
剧本: tasks: become: true
NGINX
service: state: restarted 正如您所看到的,我首先升级
安装
了问题是,如果有
Nginx
的更新,它将
安装
在第一个任务中,如果是的话,第二个任务将不会被标记为更改,处理
浏览 3
提问于2017-08-03
得票数 0
1
回答
Gitlab CI/CD -用户和权限最佳实践
nginx
、
gitlab
我正在努力寻找一些指南或文档,讨论设置gitlab CI/CD以自动部署web服务器(
nginx
) / Centos或任何Linux的最佳实践。如果我创建一个'gitlab‘用户,并将其分配到与
NGINX
相同的组中,我会被卡住,因为一旦所有文件部署完毕,我就无法将-R
nginx
保存到文件夹和文件中。那么我有什么选择呢?我想我可以以用户
NGINX
的身份添加ssh密钥,但是看起来很奇怪。 有什么好的方法可以做到这一点吗?
浏览 2
提问于2020-09-02
得票数 1
1
回答
如何在awx中
安装
星系集合?
ansible
、
ansible-awx
我在
ansible
剧本中使用了诸如
nginx
这样的插件。在服务器上,我可以使用cli将角色和集合
安装
为但是我如何在AWX(塔)上
安装
它呢?
浏览 5
提问于2022-03-02
得票数 1
回答已采纳
2
回答
对于
ansible
来说,一个优雅的重装幂等函数是吗?
php
、
mysql
、
nginx
、
provisioning
、
ansible
我们现在正在调查
Ansible
来提供我们的服务器。这是一个相当默认的
nginx
、php和mysql设置。但是,我想知道这些包的
安装
情况,以及如何在服务运行的情况下使游戏手册成为幂等。对于
nginx
,我们有一个默认的
nginx
.conf和conf.d/中的一些文件。这是一个想法,覆盖所有文件上的每一个
ansible
剧本调用?对于初始
安装
,reload不会启动服务器,因此我必须首先检查状态,并在此基础上在start和reload之间切换。 如果我查找带有
n
浏览 1
提问于2013-11-29
得票数 6
1
回答
如何在使用check模式时对不可用模板任务进行验证?
ansible
、
ansible-2.x
、
ansible-template
在运行
Ansible
in check模式(--check)时,似乎没有为template任务运行validate命令: template:src:
nginx
.conf.j2 validate: /usr/local/sbin/
nginx
-t -c
浏览 1
提问于2018-10-15
得票数 2
点击加载更多
相关
资讯
Ansible自动部署nginx+keepalived高可用负载均衡
Nginx安装lua-nginx-module模块
用kolla-ansible安装OpenStack
Docker 安装 Nginx
Nginx架构详解:nginx 的安装和配置
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券