Questions tagged [centos]
Use this tag if a question is related to centos, the community version of RedHat
22
questions
0
votes
1
answer
104
views
Unable to create a project with MANUAL as source in AWX
I have followed the instructions to install AWX from this site.
https://computingforgeeks.com/install-and-configure-ansible-awx-on-centos/
But I'm unable to create manual SCM project on new project on ...
0
votes
0
answers
32
views
Problem with dockerfile base image
I am trying to run a dockerfile that has Centos 6.9 as base image. However, Docker has withdrawn support for Centos. The dockerfile begins with :
FROM centos:6.9 as resultsdbbase # base image
...
0
votes
0
answers
25
views
Unable to understand Docker error
I am new to Docker and trying to run a webserver written in Python. I am using Linux Debian running as virtual machine on a Windows host. I have mounted the required folder from my Windows host to the ...
1
vote
0
answers
29
views
Implementing the right conditions for a yum command for centos5 in Ansible
I'm currently working with a centos5 host and I have to install some packages with yum.
Unfortunately, as far as I know, centos5 doesn't support Ansible's yum module, since it requires python2 ...
1
vote
1
answer
513
views
Failed to install kubernetes on centos
Following the official documentation, I have an error when trying to install kubernetes cluster yum package.
I am on Centos 7 using yum. So I run this commands:
cat <<EOF | sudo tee /etc/yum....
0
votes
2
answers
2k
views
network ansible command error: "msg": "network os centos is not supported"
How do I get the ansible config for rolly below?
remote:
[nsaunders@rolly ~]$
[nsaunders@rolly ~]$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: ...
0
votes
1
answer
165
views
Is it possible to install bitbucket container on Centos?
I'm trying to run the below composefile on centos7:
version: "3.3"
services:
bitbucket:
image: atlassian/bitbucket:latest
ports:
- 7990:7990
- 7999:7999
networks:
...
2
votes
1
answer
133
views
vagrant on windows 10 incorrect network configuration on multi-machine setup
I have a problem with vagrant that is running on windows 10 when I deploy centos 8 machines all the machines have eth0 with the same Ip and they cannot communicate with each other
the ip 10.0.2.15 ...
3
votes
1
answer
137
views
Porting a docker container to a different Linux host OS
I'm new to Docker. I have looked at many tutorials, however, this is still not clear to me :
For example, If I create a docker image on a system which is using Ubuntu as the host OS. Can I then later ...
1
vote
1
answer
4k
views
What is the difference between a jail environment in linux and docker container?
I am curious about difference between a jail environment in linux and Docker. What separates these two technologies?
2
votes
1
answer
9k
views
how to prevent Ansible from showing output on screen?
I have this in my playbook which execute a command on remote server and enters its log on local server.
- name: run script
shell: runuser -l testuser -c "/tmp/test.sh"
register: myshell_output
...
2
votes
2
answers
125
views
How to use edited inventory file?
I have workflow with 2 templates. First I add new host to my hosts.ini file:
- name: Add to host file
blockinfile:
path: /var/lib/awx/projects/_52__glusterfs/hosts.ini
block: |
...
0
votes
2
answers
967
views
How deploy public key to newly created VM on GCP?
I create VM instance using ansible module gcp_compute_instance
My code:
---
- name: Create jenkins node-1
hosts: localhost
connection: local
gather_facts: no
vars:
address: <my ip>
...
2
votes
1
answer
83
views
How to manage services inside the container?
Systemctl/service commands are not working on a container which is built by using centos:centos7 image.
Can anybody help me here?
3
votes
2
answers
8k
views
using copy module with wildcards
I need to copy a database backup file from a primary server to a standby server. Since I can't use synchronize, I was following this method:
copy file to local ansible server from primary,
then, copy ...
2
votes
2
answers
171
views
reboot server during Ansible tasks
I have 3 scripts that must be run on server one by one. for example:
- name: find config
shell: /data/scripts/config1
become: yes
become_user: root
tags: find_config
- name: change config
...
0
votes
2
answers
1k
views
copy contents of file on ansible server to another file on remote servers
I have a bash script on about 70 severs in /opt/zservice/etc/config that i want to change its content with ansible. the new content is on ansible server in this path /data/new_config.
how i can use ...
2
votes
1
answer
1k
views
"Error: forwarding ports: Upgrade request required" Error in helm of a kubernetes cluster
I have a kubernetes cluster built using kubespray and imported to Rancher.
The nodes are configured with
CentOS Linux 7 3.10.0-957.12.1.el7.x86_64
Docker version : 18.9.5
Kubelet version : v1.14.1
...
0
votes
1
answer
640
views
how to run an Ansible command for specific number of hosts
I am new to Ansible and i have a question about limitting hosts in a host group at running commands.I have these host groups in my inventory:
[primary]
host1
host2
[standby]
host3
host4
...
2
votes
1
answer
34
views
why can't map local path to docker's inside?
I want to build private docker hub. and I did it with:
docker run -it --restart=always -p 7901:5000 -v /data/registry:/tmp/registry registry /bash/bin
And my disk informations as below:
[root@10-...
0
votes
1
answer
3k
views
Ansible does not create directories CentOS7
This my ansible script
- hosts: localhost
tasks:
- file:
name: add dir
path: /etc/ansible/roles/webservers/'{{item}}'
state: directory
mode: 0755
owner: ...
5
votes
3
answers
4k
views
Validating certificates with get_url or yum on CentOS 7 using Ansible
I'm pretty new to Ansible, but it seemed a better tool than a bash script for installing programs from source on remote servers...
Starting from my working-but-fragile bash script, I made an Ansible ...