Hello. I would like to install the base CentOS to a specify directory, example to /var/centos. The directory is empty. I usage the next command in yum: yum --disablerepo='*' --enablerepo='base,updates' --releasever=7 -- installroot=/var/centos groupinstall @core
This command installs the base system without any problems. I want to do the same through Ansible. In Ansible I usage the next task: - name: Install base CentOS yum: state: latest name: "@core" installroot: "/var/centos/" disablerepo: "*" enablerepo: "base,updates" releasever: "7" When executing a playbook I recieve an error: Cannot find a valid baseurl for repo: base/$releasever/x86_64 As I understand, the yum don't see any repo. Ok, I make list: - name: Install base CentOS yum: list: repos installroot: "/var/centos/" When I execute the task I receive nothing. Why doesn't yum module see repos? Anybody can help me? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/23de3241-4601-4d38-a655-e639a86173a7%40googlegroups.com.