Questions tagged [centos]

Use this tag if a question is related to centos, the community version of RedHat

Filter by
Sorted by
Tagged with
5
votes
3answers
2k 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 ...
3
votes
1answer
65 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 ...
2
votes
2answers
90 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 ...
2
votes
2answers
89 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: | ...
2
votes
1answer
39 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 ...
2
votes
1answer
3k 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
1answer
50 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?
2
votes
1answer
888 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 ...
2
votes
1answer
33 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-...
1
vote
2answers
5k 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 ...
1
vote
1answer
102 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
2answers
347 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
2answers
797 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 ...
0
votes
1answer
338 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 ...
0
votes
1answer
66 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: ...
0
votes
1answer
574 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?
0
votes
1answer
220 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> ...
0
votes
1answer
2k 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: ...
0
votes
0answers
13 views

Are Fedora's Silverblue and CoreOS projects viable for Team Stations and Dev/Production envs, respectively? (Instead of CentOS)

According to RHE's website, the project Atomic Host was deprecated on August 06, 2020. I am curious if anyone knows if they are actively contributing to Fedora's Silverblue project and/or CoreOS ...
0
votes
0answers
32 views

Building the rpm package in teamcity and installing the packages required to build this

I'm new to building RPMs . I need to build a source code from github and that is throwing missing header file systemd/sd-journal.h: No such file or directory . For this, I found on one of the github ...